Initial Commit
This commit is contained in:
commit
d9efbbde06
3
golang/Dockerfile
Normal file
3
golang/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM alpine:edge
|
||||
RUN apk add --no-cache go
|
||||
CMD go
|
10
golang/build.sh
Executable file
10
golang/build.sh
Executable 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
6
golang/manifest.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user