forked from philips-labs/terraform-provider-kong
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ on: | |
- stage | ||
- master | ||
jobs: | ||
goreleaser: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
|
@@ -31,21 +31,38 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
# - | ||
# name: Import GPG key | ||
# id: import_gpg | ||
# uses: hashicorp/[email protected] | ||
# env: | ||
# # These secrets will need to be configured for the repository: | ||
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
# PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
- | ||
name: Import GPG key | ||
id: import_gpg | ||
uses: hashicorp/ghaction-import-gpg@v2.1.0 | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
env: | ||
# These secrets will need to be configured for the repository: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/[email protected] | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | ||
# GitHub sets this automatically | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - | ||
# name: Run GoReleaser | ||
# uses: goreleaser/[email protected] | ||
# with: | ||
# version: latest | ||
# args: release --rm-dist | ||
# env: | ||
# GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | ||
# # GitHub sets this automatically | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - | ||
# name: Builder | ||
# uses: wangyoucao577/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.GH_ASSET_TOKEN }} | ||
# goos: linux | ||
# goarch: amd64 | ||
# project_path: "cmd" | ||
# asset_name: renymize-linux-amd64 | ||
# goversion: 1.19 |