diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c41ffc..7083295 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository_owner }}/atauth-gateway permissions: contents: read @@ -42,8 +41,10 @@ jobs: run: | VERSION=${GITHUB_REF_NAME#v} SHORT_SHA=$(echo "$GITHUB_SHA" | cut -c1-7) + IMAGE_NAME=$(echo "${{ github.repository_owner }}/atauth-gateway" | tr '[:upper:]' '[:lower:]') echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT" + echo "image_name=$IMAGE_NAME" >> "$GITHUB_OUTPUT" - name: Log in to GHCR uses: docker/login-action@v3 @@ -64,7 +65,7 @@ jobs: build-args: | BUILD_COMMIT=${{ steps.meta.outputs.short_sha }} tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + ${{ env.REGISTRY }}/${{ steps.meta.outputs.image_name }}:${{ steps.meta.outputs.version }} + ${{ env.REGISTRY }}/${{ steps.meta.outputs.image_name }}:latest cache-from: type=gha cache-to: type=gha,mode=max