commit d9efbbde0602e9378127b452e077d53bd5303769 Author: Elara Musayelyan Date: Sun Jul 30 12:16:16 2023 -0700 Initial Commit 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