From d9efbbde0602e9378127b452e077d53bd5303769 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sun, 30 Jul 2023 12:16:16 -0700 Subject: [PATCH] Initial Commit --- golang/Dockerfile | 3 +++ golang/build.sh | 10 ++++++++++ golang/manifest.sh | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 golang/Dockerfile create mode 100755 golang/build.sh create mode 100644 golang/manifest.sh diff --git a/golang/Dockerfile b/golang/Dockerfile new file mode 100644 index 0000000..c223338 --- /dev/null +++ b/golang/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine:edge +RUN apk add --no-cache go +CMD go diff --git a/golang/build.sh b/golang/build.sh new file mode 100755 index 0000000..89fb15c --- /dev/null +++ b/golang/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [[ $# == 0 ]]; then + echo "Usage: $0 " + exit 1 +fi + +docker login gitea.elara.ws +docker build . -t "gitea.elara.ws/elara6331/golang:$1" +docker push "gitea.elara.ws/elara6331/golang:$1" diff --git a/golang/manifest.sh b/golang/manifest.sh new file mode 100644 index 0000000..8ab80c7 --- /dev/null +++ b/golang/manifest.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +docker manifest create gitea.elara.ws/elara6331/golang:latest \ + --amend gitea.elara.ws/elara6331/golang:amd64 \ + --amend gitea.elara.ws/elara6331/golang:arm64 \ + --amend gitea.elara.ws/elara6331/golang:riscv64