Skip to content

Commit

Permalink
ci: remove multiple gpg key from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
metaclips authored and mrinalwadhwa committed Jul 1, 2022
1 parent 00669c8 commit 4ee1674
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ jobs:
echo ::set-output name=version::$version
- name: Import GPG Key For Tags
id: tag_gpg
- name: Import GPG Key For Terraform
id: release_gpg
uses: hashicorp/ghaction-import-gpg@78437f97569a473e42b227be84d4084c2dfb49ba # v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.PR_BOT_GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PR_BOT_GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.RELEASE_GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.RELEASE_GPG_PASSPHRASE }}

- name: Add GPG Key And Sign Tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "${{ secrets.PR_BOT_EMAIL }}"
git config --global user.name "${{ secrets.PR_BOT_GITHUB_USERNAME }}"
git config --global user.signingkey "${{ steps.tag_gpg.outputs.fingerprint }}"
git config --global user.email "${{ secrets.RELEASE_BOT_EMAIL }}"
git config --global user.name "${{ secrets.RELEASE_BOT_GITHUB_USERNAME }}"
git config --global user.signingkey "${{ steps.release_gpg.outputs.fingerprint }}"
git tag -s ${{ steps.release.outputs.version }} -m "Github Release"
git push --tags
Expand Down Expand Up @@ -78,13 +78,6 @@ jobs:
- run: go mod download

- name: Import GPG Key For Terraform
id: release_gpg
uses: hashicorp/ghaction-import-gpg@78437f97569a473e42b227be84d4084c2dfb49ba # v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.RELEASE_GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.RELEASE_GPG_PASSPHRASE }}

- uses: goreleaser/goreleaser-action@68acf3b1adf004ac9c2f0a4259e85c5f66e99bef # v2.9.1
with:
version: latest
Expand Down

0 comments on commit 4ee1674

Please sign in to comment.