feat: add support for choosing the Terragrunt tool (#536) #30
Workflow file for this run
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
name: Release | |
# Releases are triggered on tags that start with "v". | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
goreleaser: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Unshallow | |
run: git fetch --prune --unshallow | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: { go-version: 1.21 } | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v5 | |
id: import_gpg | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Run GoReleaser to create draft release | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install spacectl | |
uses: spacelift-io/setup-spacectl@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release to Spacelift registry (preprod) | |
run: spacectl provider create-version --type=spacelift | |
env: | |
GPG_KEY_ID: ${{ steps.import_gpg.outputs.keyid }} | |
SPACELIFT_API_KEY_ENDPOINT: https://spacelift-io.app.spacelift.dev | |
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_PREPROD_API_KEY_ID }} | |
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_PREPROD_API_KEY_SECRET }} | |
- name: Release to Spacelift registry (prod) | |
run: spacectl provider create-version --type=spacelift | |
env: | |
GPG_KEY_ID: ${{ steps.import_gpg.outputs.keyid }} | |
SPACELIFT_API_KEY_ENDPOINT: https://spacelift-io.app.spacelift.io | |
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_PROD_API_KEY_ID }} | |
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_PROD_API_KEY_SECRET }} |