Skip to content

Commit

Permalink
Merge pull request #374 from Interhyp/RELTEC-11116-awawdawd
Browse files Browse the repository at this point in the history
chore(workflows): Fix release workflow
  • Loading branch information
Roshick authored Dec 9, 2024
2 parents 5739670 + 5289162 commit afb5a2b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: go-semantic-release/action@v1
- id: semantic-release
uses: go-semantic-release/action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
Expand All @@ -52,16 +53,15 @@ jobs:
hooks: goreleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
- id: repository-id
uses: ASzc/change-string-case-action@v6
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
- run: |
TARGET=${{ steps.meta.outputs.tags }}
string: ${{ github.repository }}
- if: steps.semantic-release.outputs.version != ''
run: |
TARGET=ghcr.io/${{ steps.repository-id.outputs.lowercase }}:${{ steps.semantic-release.outputs.version }}
SOURCE=${{ needs.build.outputs.image }}
docker pull $SOURCE
docker tag $SOURCE $TARGET
docker push $TARGET

0 comments on commit afb5a2b

Please sign in to comment.