testing tags

This commit is contained in:
Luca Beurer-Kellner
2025-03-11 14:44:24 +01:00
parent 68fbdc49a3
commit 2f8a019ae0

View File

@@ -37,6 +37,10 @@ jobs:
echo "tags=ghcr.io/${{ github.repository }}/app-api:latest" >> $GITHUB_ENV
echo "tags_ui=ghcr.io/${{ github.repository }}/app-ui:latest" >> $GITHUB_ENV
# starts with v* and only contains numbers and dots
if [[ "${{ github.event.workflow_run.head_branch }}" == "ghcr" ]]; then
echo "tags=ghcr.io/${{ github.repository }}/app-api:ghcr-testing" >> $GITHUB_ENV
echo "tags_ui=ghcr.io/${{ github.repository }}/app-ui:ghcr-testing" >> $GITHUB_ENV
# starts with v* and only contains numbers and dots
elif [[ "${{ github.event.workflow_run.head_branch }}" =~ ^v[0-9.]+$ ]]; then
# get tag name from the event
version=${{ github.event.workflow_run.head_branch }}