From fabcc2609564024cab87c0ab8b03e5cfab3a22f6 Mon Sep 17 00:00:00 2001 From: maxid <97409287+maxdorninger@users.noreply.github.com> Date: Mon, 22 Dec 2025 19:05:11 +0100 Subject: [PATCH] fix: extract version number without 'v' prefix in build workflows in order to use correct image tag for inspecting the image --- .github/workflows/build-push-backend.yml | 4 +++- .github/workflows/build-push-metadata_relay.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-push-backend.yml b/.github/workflows/build-push-backend.yml index c2bf451..cfcc706 100644 --- a/.github/workflows/build-push-backend.yml +++ b/.github/workflows/build-push-backend.yml @@ -185,6 +185,8 @@ jobs: VERSION="dev-${DATE_STAMP}-${{ github.run_number }}" fi echo "version=$VERSION" >> $GITHUB_OUTPUT + VERSION_NO_V=${VERSION#v} + echo "version_no_v=$VERSION_NO_V" >> $GITHUB_OUTPUT - name: Extract metadata (tags) id: meta @@ -209,4 +211,4 @@ jobs: - name: Inspect image run: | - docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/mediamanager:${{ steps.version.outputs.version }} \ No newline at end of file + docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/mediamanager:${{ steps.version.outputs.version_no_v }} \ No newline at end of file diff --git a/.github/workflows/build-push-metadata_relay.yml b/.github/workflows/build-push-metadata_relay.yml index 74a4c80..1384d8f 100644 --- a/.github/workflows/build-push-metadata_relay.yml +++ b/.github/workflows/build-push-metadata_relay.yml @@ -149,6 +149,8 @@ jobs: VERSION="dev-${DATE_STAMP}-${{ github.run_number }}" fi echo "version=$VERSION" >> $GITHUB_OUTPUT + VERSION_NO_V=${VERSION#v} + echo "version_no_v=$VERSION_NO_V" >> $GITHUB_OUTPUT - name: Extract metadata (tags) id: meta @@ -173,4 +175,4 @@ jobs: - name: Inspect image run: | - docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/metadata_relay:${{ steps.version.outputs.version }} \ No newline at end of file + docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/${{ steps.repo_name.outputs.name }}/metadata_relay:${{ steps.version.outputs.version_no_v }} \ No newline at end of file