From d21553a9d79563486414169449f3500b3aa46037 Mon Sep 17 00:00:00 2001 From: Grunet Date: Thu, 13 Jul 2023 00:09:57 -0500 Subject: [PATCH] Try fix (#18) --- .github/workflows/release-honeypot.yaml | 12 +++++++++++- packages/honeypot/CHANGELOG.md | 4 ++++ packages/honeypot/version.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-honeypot.yaml b/.github/workflows/release-honeypot.yaml index 92eca4b..a0d0bea 100644 --- a/.github/workflows/release-honeypot.yaml +++ b/.github/workflows/release-honeypot.yaml @@ -65,6 +65,16 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + # Needed because my Github account name contains an uppercase character which isn't allowed in a docker tag (and doesn't match the tags generated by the previous action) + # See https://github.com/orgs/community/discussions/25768 for more details + - name: Downcase account name and generate version Docker tag + id: get-version-tag + run: | + unmodifiedTag=${{ env.REGISTRY}}/${{ env.IMAGE_NAME }}:v${{ steps.get-version.outputs.releaseVersion }} + fullyLowercaseTag=${unmodifiedTag,,} + + echo "tag=$fullyLowercaseTag" >> "$GITHUB_OUTPUT" + # Build and push Docker image with Buildx # https://github.com/docker/build-push-action - name: Build and push Docker image @@ -75,7 +85,7 @@ jobs: push: true tags: | ${{ steps.meta.outputs.tags }} - ${{ env.REGISTRY}}/${{ env.IMAGE_NAME }}:v${{ steps.get-version.outputs.releaseVersion }} + ${{ steps.get-version-tag.outputs.tag }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/packages/honeypot/CHANGELOG.md b/packages/honeypot/CHANGELOG.md index 7c88955..f26271c 100644 --- a/packages/honeypot/CHANGELOG.md +++ b/packages/honeypot/CHANGELOG.md @@ -12,6 +12,10 @@ What is in scope for breaking changes includes ## Changes +### v0.2.2 + +- Try fix another issue with the casing of the docker tag in the release workflow + ### v0.2.1 - Try fix issue with docker tag in release workflow diff --git a/packages/honeypot/version.json b/packages/honeypot/version.json index b4e3d18..9bd8212 100644 --- a/packages/honeypot/version.json +++ b/packages/honeypot/version.json @@ -1,3 +1,3 @@ { - "version": "0.2.1" + "version": "0.2.2" } \ No newline at end of file