Skip to content

Commit

Permalink
chore(ci): migrate release-please action
Browse files Browse the repository at this point in the history
hopefully this works 🤞
  • Loading branch information
cwrau committed Jan 17, 2024
1 parent e77941e commit 02b9ea1
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 79 deletions.
37 changes: 37 additions & 0 deletions .github/release-please/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"release-type": "helm",
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Miscellaneous Chores"
}
],
"include-component-in-tag": true,
"pull-request-title-pattern": "chore${scope}: [bot] release${component}:${version}",
"separate-pull-requests": true,
"packages": {
"charts/base-cluster": {
"package-name": "base-cluster"
},
"charts/chirpstack": {
"package-name": "chirpstack"
},
"charts/stellio-context-broker": {
"package-name": "stellio-context-broker"
},
"charts/t8s-cluster": {
"package-name": "t8s-cluster"
},
"charts/teuto-portal-k8s-worker": {
"package-name": "teuto-portal-k8s-worker"
}
}
}
Empty file.
69 changes: 0 additions & 69 deletions .github/workflows/create-release-pr.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/create-release-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Create Release PR for charts

on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- charts/**

jobs:
createReleasePR:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
skip-github-release: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json
14 changes: 4 additions & 10 deletions .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,10 @@ jobs:
- run: helm package --dependency-update charts/${{ needs.getChangedChart.outputs.chart }}
- run: helm registry login ghcr.io --username teutonet-bot --password ${{ secrets.ACTIONS_BOT_TOKEN }}
- run: helm push ${{ needs.getChangedChart.outputs.chart }}-* "oci://ghcr.io/${GITHUB_REPOSITORY}"
- name: Change to github-actions[bot]
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
with:
path: charts/${{ needs.getChangedChart.outputs.chart }}
package-name: ${{ needs.getChangedChart.outputs.chart }}
command: github-release
changelog-types: '[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Miscellaneous Chores"}]'
release-type: helm
skip-github-pull-request: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json

0 comments on commit 02b9ea1

Please sign in to comment.