mirror of
https://gitea.intern.drachenfels.de/ruben/goget.git
synced 2026-02-08 12:48:01 +00:00
add Dockerfile and build script
This commit is contained in:
14
build.sh
Executable file
14
build.sh
Executable 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
|
||||
Reference in New Issue
Block a user