Skip to content

Commit

Permalink
release:build - Removing GPG and sign images from build.yaml (#1018)
Browse files Browse the repository at this point in the history
Signed-off-by: Wilian Gabriel <wilian.silva@zup.com.br>
  • Loading branch information
wiliansilvazup authored Mar 8, 2022
1 parent 578e883 commit 2aa2c5b
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
contents: write
packages: write
runs-on: ubuntu-latest
env:
COSIGN_KEY_LOCATION: /tmp/cosign.key
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}

steps:
- name: Checkout
Expand All @@ -41,11 +38,6 @@ jobs:
with:
go-version: 1.17

- name: Co#staller
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.2.0'

- name: Install Mage
run: go install github.com/magefile/mage@v1.11

Expand All @@ -56,34 +48,20 @@ jobs:
- name: Git config
run: mage -v defaultGitConfig

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: Install cosign private key
run: mage -v writeCosignKeyToFile
env:
COSIGN_KEY: ${{secrets.COSIGN_KEY}}

- name: Create local tag
run: mage -v createLocalTag "v0.0.1-alpha.1"
run: git tag --force v0.0.0-alpha

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist --skip-publish
args: release --rm-dist --skip-publish --skip-sign --release-notes="README.md"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
GORELEASER_CURRENT_TAG: "v0.0.1-alpha.1"
GORELEASER_CURRENT_TAG: "v0.0.0-alpha"
CURRENT_DATE: ${{ steps.date.outputs.date }}
CLI_VERSION: "v0.0.1-alpha.1"
CLI_VERSION: "v0.0.0-alpha"

- name: check-docker
run: docker image ls -a
Expand Down

0 comments on commit 2aa2c5b

Please # to comment.