add Dockerfile and build script

This commit is contained in:
2021-12-20 21:43:20 +00:00
parent 65d6fbe457
commit 12c3b5f784
3 changed files with 41 additions and 10 deletions

14
build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh -eu
image="harbor.intern.drachenfels.de/shieldos/goget"
version="$(git describe --always --tags --dirty)"
buildah bud --layers \
--build-arg GOPROXY=$GOPROXY \
--build-arg GONOSUMDB=$GONOSUMDB \
--build-arg RELEASE=$version \
-t $image:latest \
-t $image:$version
buildah push $image:latest
buildah push $image:$version