add simple build script

This commit is contained in:
1e99 2024-11-09 19:34:45 +01:00
parent 20b9ab47c5
commit 98634b4b8a

11
build.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -e
commit="$(git rev-parse HEAD)"
image="git.1e99.eu/1e99/passed"
docker build -t $image:$commit .
docker tag $image:$commit $image:latest
docker push $image:$commit
docker push $image:latest