fix: only push latest tag, remove sha revision
Build & Push Docker Image / build (push) Successful in 10s

This commit is contained in:
2026-05-12 21:34:27 +02:00
parent 7ef3ac331f
commit 224ff7c583
+1 -8
View File
@@ -12,17 +12,10 @@ jobs:
- name: Login Gitea Container Registry
run: echo "${{ secrets.ACTION_BOT }}" | docker login gitea.lokcal.de -u loki --password-stdin
- name: Build and tag
- name: Build and push latest
run: |
IMAGE="gitea.lokcal.de/loki/update-planer"
docker build \
--label "org.opencontainers.image.source=https://gitea.lokcal.de/loki/UpdatePlaner" \
--label "org.opencontainers.image.revision=${{ gitea.sha }}" \
-t "$IMAGE:${{ gitea.sha }}" \
-t "$IMAGE:latest" .
- name: Push
run: |
IMAGE="gitea.lokcal.de/loki/update-planer"
docker push "$IMAGE:${{ gitea.sha }}"
docker push "$IMAGE:latest"