Tag Docker images with both git tag and latest
All checks were successful
Build and Push / build (push) Successful in 8s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jan Novak
2026-02-15 21:05:51 +01:00
parent 0b95c847c4
commit a1212c6312

View File

@@ -30,6 +30,7 @@ jobs:
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG=${{ inputs.tag }}
fi
IMAGE=gitea.home.hrajfrisbee.cz/${{ github.repository }}:$TAG
docker build -f build/Dockerfile -t $IMAGE .
docker push $IMAGE
REPO=gitea.home.hrajfrisbee.cz/${{ github.repository }}
docker build -f build/Dockerfile -t $REPO:$TAG -t $REPO:latest .
docker push $REPO:$TAG
docker push $REPO:latest