Skip to content

Commit

Permalink
ci: [skip ci] Adding gpg signature of binary
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Nov 27, 2022
1 parent 2d73863 commit 9e4d711
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
tag:
name: Release
runs-on: ubuntu-latest
env:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -38,11 +40,24 @@ jobs:
go-version: "^1.19"
- name: Build
run: make init
- name: GPG
id: import_gpg
if: ${{ env.gpg_private_key != '' }}
uses: crazy-max/ghaction-import-gpg@v4
with:
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "release"
export GIT_TAG="$(basename ${{ github.ref }})"
export GO_VERSION_PATH="github.com/${{ github.repository }}/cmd.Version"
scripts/release build assets clean
- name: Docker
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "docker_promote"
scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version-date)" "$(basename ${{ github.ref }})"

0 comments on commit 9e4d711

Please sign in to comment.