chore: update Dockerfile

This commit is contained in:
2025-11-11 11:06:40 +01:00
parent a3360f3a1b
commit 4c90716355
4 changed files with 779 additions and 653 deletions

18
build-docker.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
REGISTRY="harbor.cl1.parano.ch/library"
IMAGE="myice"
current_commit=$(git rev-parse HEAD)
git_tag=$(git tag --points-at "$current_commit")
if [[ -z $git_tag ]]; then
echo "Build only works on a git tag" >&2
exit 1
fi
docker build --platform linux/amd64 -t "$REGISTRY/$IMAGE:$git_tag" .
docker push "$REGISTRY/$IMAGE:$git_tag"