Initial Commit

This commit is contained in:
Elara 2023-07-30 12:16:16 -07:00
commit d9efbbde06
3 changed files with 19 additions and 0 deletions

3
golang/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM alpine:edge
RUN apk add --no-cache go
CMD go

10
golang/build.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if [[ $# == 0 ]]; then
echo "Usage: $0 <arch>"
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"

6
golang/manifest.sh Normal file
View File

@ -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