Skip to content

Commit

Permalink
chore(workflows): Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rieb, Elias authored and Rieb, Elias committed Dec 9, 2024
1 parent f1fd933 commit 1060237
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,23 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: semantic-release
uses: go-semantic-release/action@v1
- uses: go-semantic-release/action@v1
with:
hooks: goreleaser
prerelease: false
allow-initial-development-versions: true # remove to trigger an initial 1.0.0 release
changelog-generator-opt: "emojis=true"
github-token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.semantic-release.outputs.version != ''
run: |
TAG=${{ steps.semantic-release.outputs.version }}
IMAGE=${{ needs.build.outputs.image }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
- run: |
TARGET=${{ steps.meta.outputs.tags }}
SOURCE=${{ needs.build.outputs.image }}
docker pull $IMAGE
docker tag $IMAGE $IMAGE:$TAG
docker push $IMAGE:$TAG
docker pull $SOURCE
docker tag $SOURCE $TARGET
docker push $TARGET

0 comments on commit 1060237

Please sign in to comment.