Skip to content

chore(main): [bot] release teuto-portal-k8s-worker:1.0.2 (#699) #88

chore(main): [bot] release teuto-portal-k8s-worker:1.0.2 (#699)

chore(main): [bot] release teuto-portal-k8s-worker:1.0.2 (#699) #88

name: Release Chart
on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- .github/release-please/manifest.json
jobs:
release_please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
paths_released: ${{ steps.release.outputs.paths_released }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
skip-github-pull-request: true
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json
release_helm:
runs-on: ubuntu-latest
needs: release_please
if: ${{ needs.release_please.outputs.releases_created }}
strategy:
matrix:
chart: ${{ fromJson(needs.release_please.outputs.paths_released) }}
env:
CHART: ${{ matrix.chart }}
steps:
- uses: actions/checkout@v4
- run: helm package --dependency-update "${CHART}"
- run: helm registry login ghcr.io --username teutonet-bot --password ${{ secrets.ACTIONS_BOT_TOKEN }}
- run: helm push "${CHART}"-* "oci://ghcr.io/${GITHUB_REPOSITORY}"
abort:
runs-on: ubuntu-latest
needs: release_please
if: ${{ !needs.release_please.outputs.releases_created }}
steps:
- name: abort if no release was made
run: |
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}