OPSEXP-2365 Update docs for v7.0.0 (#1042) #24
Workflow file for this run
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: Helm release | |
on: | |
push: | |
tags: | |
- v** | |
jobs: | |
build_vars: | |
runs-on: ubuntu-latest | |
outputs: | |
app_json: ${{ steps.getcharts.outputs.app }} | |
chart_names: ${{ steps.chart_names.outputs.json}} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- id: getcharts | |
uses: ./.github/actions/charts-as-json | |
with: | |
charts-root: helm | |
- id: chart_names | |
env: | |
JSON: ${{ toJSON(fromJSON(steps.getcharts.outputs.all)) }} | |
JQ_FILTER: $json | [.charts[].name] | |
run: | | |
CHARTS=$(jq -nc --argjson json '${{ env.JSON }}' '${{ env.JQ_FILTER }}') | |
echo "json=$CHARTS" >> $GITHUB_OUTPUT | |
publish: | |
runs-on: ubuntu-latest | |
needs: | |
- build_vars | |
strategy: | |
max-parallel: 1 | |
fail-fast: true | |
matrix: | |
charts: ${{ fromJSON(needs.build_vars.outputs.chart_names) }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Ensure no dependencies are pre-release versions | |
run: | | |
! grep -e "-alpha" -e "-SNAPSHOT" helm/${{ matrix.charts }}/Chart.yaml | |
- name: Publish chart | |
uses: >- | |
Alfresco/alfresco-build-tools/.github/actions/dbp-charts/[email protected] | |
with: | |
chart_name: ${{ matrix.charts }} | |
github_token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
github_username: ${{ secrets.BOT_GITHUB_USERNAME }} | |
github_email: ${{ secrets.BOT_GITHUB_EMAIL }} |