diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index f55d255f..46731636 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -99,6 +99,12 @@ jobs: echo "Using dependabot-updater image tag '$tag_sha' (v$tag_name)" echo "version=$tag_sha" >> $GITHUB_OUTPUT + - name: Remove + from fullSemVer + id: remove_plus + run: | + cleanedFullSemVer=$(echo "${{ steps.gitversion.outputs.fullSemVer }}" | tr -d '+') + echo "::set-output name=cleanedFullSemVer::$cleanedFullSemVer" + - name: Build image run: | docker build \ @@ -114,11 +120,11 @@ jobs: --label com.github.image.source.branch=${{ github.ref }} \ -t "ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest" \ -t "ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.gitversion.outputs.shortSha }}" \ - -t "ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.gitversion.outputs.fullSemVer }}" \ + -t "ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.remove_plus.outputs.cleanedFullSemVer }}" \ -t "ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.gitversion.outputs.major}}.${{ steps.gitversion.outputs.minor }}" \ -t "ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.gitversion.outputs.major }}" \ --cache-from ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest \ - . + . - name: Log into registry if: ${{ (github.ref == 'refs/heads/main') || (!startsWith(github.ref, 'refs/pull')) || startsWith(github.ref, 'refs/tags') }}