This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
forked from hashicorp/packer-plugin-amazon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from inloco/ci/rollback-release-pipeline
ci: rollback release pipeline
- Loading branch information
Showing
2 changed files
with
34 additions
and
38 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
# This GitHub action can publish assets for release when a tag is created. | ||
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0). | ||
# | ||
|
@@ -17,43 +14,31 @@ on: | |
push: | ||
tags: | ||
- 'v*' | ||
permissions: | ||
contents: write | ||
packages: read | ||
jobs: | ||
get-go-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
go-version: ${{ steps.get-go-version.outputs.go-version }} | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: 'Determine Go version' | ||
id: get-go-version | ||
run: | | ||
echo "Found Go $(cat .go-version)" | ||
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT | ||
goreleaser: | ||
needs: | ||
- get-go-version | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
uses: actions/checkout@v2 | ||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
- name: Set up Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ needs.get-go-version.outputs.go-version }} | ||
go-version: 1.21 | ||
- name: Describe plugin | ||
id: plugin_describe | ||
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT" | ||
- name: Install signore | ||
uses: hashicorp/setup-signore-package@v1 | ||
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')" | ||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/[email protected] | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v5.0.0 | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --clean --timeout 120m | ||
|
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