Skip to content

Commit

Permalink
Merge pull request chinmina#61 from jamestelfer/release-mod
Browse files Browse the repository at this point in the history
ci: fix errors in release process
  • Loading branch information
jamestelfer authored Sep 21, 2024
2 parents 58e68fe + 2c64718 commit bad5f94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
jobs:
goreleaser:
# deploy with the correct environment to allow DockerHub access
environment: "Publish"
environment: 'Publish'

runs-on: ubuntu-latest
steps:
Expand All @@ -39,8 +39,8 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: '${{ vars.DOCKERHUB_USER }}'
password: '${{ secrets.DOCKERHUB_TOKEN }}'

- name: Release
uses: goreleaser/goreleaser-action@v5
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ builds:
# If you do this locally, sign with an OAuth identity you don't mind being permanently
# published to a transparency log.
binary_signs:
- cmd: './ci-only.sh'
- signature: '${artifact}.cosign.bundle'
cmd: './ci-only.sh'
args:
- "cosign"
- "sign-blob"
- "${artifact}"
- "--bundle=${artifact}.cosign.bundle"
- "--bundle=${signature}"
- "--yes" # needed on cosign 2.0.0+
output: false # the necessary output is the .cosign.bundle file

Expand Down

0 comments on commit bad5f94

Please sign in to comment.