Skip to content

Commit

Permalink
chore(ci): add macos sign and notarize (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
omercnet authored Apr 19, 2024
1 parent 1959090 commit 1001e0c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,20 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
run: |
goreleaser release --clean
env:
QUILL_NOTARY_ISSUER: ${{ secrets.QUILL_NOTARY_ISSUER }}
QUILL_NOTARY_KEY: ${{ secrets.QUILL_NOTARY_KEY }}
QUILL_NOTARY_KEY_ID: ${{ secrets.QUILL_NOTARY_KEY_ID }}
QUILL_SIGN_P12: ${{ secrets.QUILL_SIGN_P12 }}
QUILL_SIGN_PASSWORD: ${{ secrets.QUILL_SIGN_PASSWORD }}
- name: Run GoReleaser on PR
if: github.event_name == 'pull_request'
env:
QUILL_NOTARY_ISSUER: ${{ secrets.QUILL_NOTARY_ISSUER }}
QUILL_NOTARY_KEY: ${{ secrets.QUILL_NOTARY_KEY }}
QUILL_NOTARY_KEY_ID: ${{ secrets.QUILL_NOTARY_KEY_ID }}
QUILL_SIGN_P12: ${{ secrets.QUILL_SIGN_P12 }}
QUILL_SIGN_PASSWORD: ${{ secrets.QUILL_SIGN_PASSWORD }}
run: |
goreleaser release --snapshot --clean
- name: Upload artifacts
Expand Down
15 changes: 14 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project_name: descope
before:
hooks:
- go mod tidy
- go install github.com/anchore/quill/cmd/quill@v0

env:
- GO111MODULE=on
Expand All @@ -23,9 +24,21 @@ builds:
- amd64
- arm64
goos:
- darwin
- windows
- linux
- binary: descope
id: macos
goos:
- darwin
goarch:
- amd64
- arm64
hooks:
post:
- cmd: quill sign-and-notarize "{{ .Path }}" -vv --dry-run={{ .IsSnapshot }} --ad-hoc={{ .IsSnapshot }}
env:
- QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log

dockers:
- image_templates:
- "ghcr.io/descope/cli:{{ .Tag }}-amd64"
Expand Down

0 comments on commit 1001e0c

Please sign in to comment.