Skip to content

Commit 771fa0b

Browse files
authored
chore: Add release-please for terraform modules (#73)
1 parent 7ca62e1 commit 771fa0b

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.github/release-please/config.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"release-type": "terraform-module",
3+
"bump-minor-pre-major": true,
4+
"bump-patch-for-minor-pre-major": true,
5+
"initial-version": "0.1.0",
6+
"packages": {
7+
"terraform-modules/spectrum": {
8+
"component": "terraform-module-spectrum"
9+
},
10+
"terraform-modules/k3s": {
11+
"component": "terraform-module-k3s"
12+
},
13+
"terraform-modules/talos": {
14+
"component": "terraform-module-talos"
15+
}
16+
}
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "release-please"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
concurrency:
9+
group: "${{ github.workflow }}-${{ github.ref }}"
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Run release-please
17+
id: release
18+
uses: googleapis/release-please-action@v4
19+
with:
20+
target-branch: main
21+
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}
22+
config-file: .github/release-please/config.json
23+
manifest-file: .github/release-please/manifest.json
24+
25+
- name: Show output from release-please
26+
if: steps.release.outputs.releases_created
27+
env:
28+
RELEASE_PLEASE_OUTPUT: ${{ toJSON(steps.release.outputs) }}
29+
run: echo "${RELEASE_PLEASE_OUTPUT}" | jq

0 commit comments

Comments
 (0)