chore(main): [bot] release base-cluster:7.1.1 (#1268) #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: helm package --dependency-update "${CHART}" | |
- run: helm registry login ghcr.io --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} | |
- run: helm push -- *.tgz "oci://ghcr.io/${GITHUB_REPOSITORY}" | |
- run: oras login ghcr.io --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} | |
- run: oras push "ghcr.io/${GITHUB_REPOSITORY}/${CHART#charts/}:artifacthub.io" --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml .github/artifacthub-repo.yaml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml | |
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 }} |