Skip to content

Commit

Permalink
chore: Add release candidate workflow (#167)
Browse files Browse the repository at this point in the history
## Motivation

In order to mimic the release flow of sloctl we should be able to create
release candidate which would not be pushed to Terraform registry but
would still trigger acceptance tests.
  • Loading branch information
nieomylnieja authored Feb 15, 2024
1 parent 1b63496 commit 0d02d75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Release candidate
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
jobs:
test:
uses: ./.github/workflows/acc-tests.yml
with:
clientId: "${{ vars.TERRAFORM_NOBL9_CLIENT_ID }}"
clientSecret: "${{ secrets.TERRAFORM_NOBL9_CLIENT_SECRET }}"
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
# You will need to pass the `--batch` flag to `gpg` in your signing step
# in `goreleaser` to indicate this is being used in a non-interactive mode.
#
name: release
name: Release
on:
push:
tags:
- "v*"
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta"
- "v[0-9]+.[0-9]+.[0-9]+-alpha"
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0d02d75

Please sign in to comment.