From 9cf8cffee458e00f4011f919075042acbb14cd80 Mon Sep 17 00:00:00 2001 From: ViMaSter Date: Sat, 25 Oct 2025 17:44:59 +0200 Subject: [PATCH 1/2] fix: Replace invalid docker tag characters with underscore --- .forgejo/workflows/images.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/images.yml b/.forgejo/workflows/images.yml index 8c8f5a4..4095e84 100644 --- a/.forgejo/workflows/images.yml +++ b/.forgejo/workflows/images.yml @@ -28,7 +28,8 @@ jobs: if [ "${{ github.ref_name }}" = "main" ] && [ "${{ github.event_name }}" = "push" ]; then echo "tag=latest" >> $GITHUB_OUTPUT else - echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT + # renovate creates sub branches with `/`; these break the tagging in the build process + echo "tag=${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9._-]/_/g' >> $GITHUB_OUTPUT fi - name: Build web image From 9138d574295598ad7dd76cb3460ac61d324b7408 Mon Sep 17 00:00:00 2001 From: ViMaSter Date: Sat, 25 Oct 2025 17:51:09 +0200 Subject: [PATCH 2/2] Excludes `tag=` from replacement --- .forgejo/workflows/images.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/images.yml b/.forgejo/workflows/images.yml index 4095e84..940ce02 100644 --- a/.forgejo/workflows/images.yml +++ b/.forgejo/workflows/images.yml @@ -29,7 +29,7 @@ jobs: echo "tag=latest" >> $GITHUB_OUTPUT else # renovate creates sub branches with `/`; these break the tagging in the build process - echo "tag=${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9._-]/_/g' >> $GITHUB_OUTPUT + echo tag=$(echo "${{ github.ref_name }}" | sed 's/[^a-zA-Z0-9._-]/_/g') >> $GITHUB_OUTPUT fi - name: Build web image