added latest tag

This commit is contained in:
2026-07-12 13:27:58 +02:00
parent c8afa1d930
commit 90832d1f2b
+5 -2
View File
@@ -32,18 +32,21 @@ jobs:
REF="${{ github.ref_name }}"
if [[ "${REF}" == v* ]]; then
TAG="${REF#v}"
TAGS="${FULL_IMAGE}:${TAG},${FULL_IMAGE}:latest"
else
TAG=$(echo "${REF}" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]/-/g')
TAGS="${FULL_IMAGE}:${TAG}"
fi
echo "Registry: ${REGISTRY}"
echo "Actor: ${ACTOR}"
echo "Image: ${FULL_IMAGE}:${TAG}"
echo "Tags: ${TAGS}"
echo "registry=${REGISTRY}" >> "$GITHUB_OUTPUT"
echo "actor=${ACTOR}" >> "$GITHUB_OUTPUT"
echo "image=${FULL_IMAGE}" >> "$GITHUB_OUTPUT"
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
echo "tags=${TAGS}" >> "$GITHUB_OUTPUT"
- name: Network Debug
run: |
@@ -67,4 +70,4 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.compute-tag.outputs.image }}:${{ steps.compute-tag.outputs.tag }}
tags: ${{ steps.compute-tag.outputs.tags }}