Skip to content

Update Changelog - WIP #12

Update Changelog - WIP

Update Changelog - WIP #12

Workflow file for this run

name: "Release TF-Provider"
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
permissions:
contents: write
jobs:
provider-release_pre-test:
name: "Test Provider code before the Release"
uses: ./.github/workflows/test.yaml
secrets: inherit
provider-release_build:
name: "Build Release of the Provider"
needs: provider-release_pre-test
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/community.yml@v3
secrets:
gpg-private-key: '${{ secrets.GPG_PRIVATE_KEY }}'
with:
setup-go-version-file: 'go.mod'
provider-release_post-test:
name: "Test Provider artifact after the Release"
needs: provider-release_build
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: "Checkout Provider code from release tag"
uses: actions/checkout@v4
- name: "Install Terraform"
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
terraform_version: '1.5.7'
- name: "Test Provider with quickstart example"
run: |
set -eu -x;
TAG=${{ github.ref_name }};
VERSION=${TAG#v};
make test-examples-quickstart ARGS="-v ${VERSION} -f github-release-draft";
shell: bash
env:
STACKGUARDIAN_API_KEY: '${{ secrets.SG_STG_API_KEY }}' # FIXME(Release): Revert to PRD
STACKGUARDIAN_API_URI: '${{ secrets.SG_STG_API_URI }}' # FIXME(Release): Revert to PRD
STACKGUARDIAN_ORG_NAME: '${{ secrets.SG_STG_ORG_NAME }}' # FIXME(Release): Revert to PRD
GH_TOKEN: '${{ github.token }}'