Bump values using alfresco-updatecli/master #127
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: Bump versions | |
run-name: Bump ${{ inputs.update-type }} using alfresco-updatecli/${{ inputs.alfresco-updatecli-ref }} | |
on: | |
workflow_dispatch: | |
inputs: | |
update-type: | |
description: 'Which dependencies to bump' | |
type: choice | |
options: | |
- charts | |
- values | |
alfresco-updatecli-ref: | |
description: "The version to use for alfresco/alfresco-updatecli configs (used only when `values` is selected)" | |
type: string | |
default: master | |
jobs: | |
bump-charts-dependencies: | |
runs-on: ubuntu-latest | |
name: Helm charts dependencies | |
if: inputs.update-type == 'charts' | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
- uses: >- | |
Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v5.16.0 | |
- name: Login to quay.io | |
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Install Updatecli | |
uses: updatecli/updatecli-action@9b35aa663a924d5d5faf89dac76594e3034bcf1f # v2.56.0 | |
- run: updatecli apply | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@4a622625f9863bb73651cab161bb01d30aaa1b52 # v5.16.0 | |
- name: Regenerate helm docs if necessary | |
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@4a622625f9863bb73651cab161bb01d30aaa1b52 # v5.16.0 | |
with: | |
pre-commit-args: helm-docs || true | |
skip_checkout: "true" | |
- name: Git Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 | |
with: | |
commit_message: | | |
🛠 Updatecli pipeline bump | |
commit_user_name: ${{ vars.BOT_GITHUB_USERNAME }} | |
commit_user_email: ${{ vars.BOT_GITHUB_EMAIL }} | |
branch: ${{ github.ref_name == 'main' && 'updatecli-bump-helm' || github.ref_name }} | |
create_branch: ${{ github.ref_name == 'main' }} | |
push_options: ${{ github.ref_name == 'main' && '--force' || '' }} | |
bump-values-dependencies: | |
runs-on: ubuntu-latest | |
name: Image tags values dependencies | |
if: inputs.update-type == 'values' | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
- uses: >- | |
Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v5.16.0 | |
- name: Login to quay.io | |
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Install Updatecli | |
uses: updatecli/updatecli-action@9b35aa663a924d5d5faf89dac76594e3034bcf1f # v2.56.0 | |
- name: Checkout updatecli configs | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
repository: alfresco/alfresco-updatecli | |
ref: ${{ inputs.alfresco-updatecli-ref || 'master' }} | |
path: alfresco-updatecli | |
- name: Preprocess values file appending existing keys only | |
run: yq '. *? load("alfresco-updatecli/deployments/values/supported-matrix.yaml") | explode(.)' updatecli-matrix-targets.yaml | tee ./merged.yaml | |
- name: updatecli apply | |
# path to values file must be relative https://github.com/updatecli/updatecli/issues/1253 | |
run: updatecli apply -c alfresco-updatecli/deployments/uber-manifest.tpl -v ./merged.yaml | |
env: | |
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} | |
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} | |
UPDATECLI_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | |
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@4a622625f9863bb73651cab161bb01d30aaa1b52 # v5.16.0 | |
- name: Regenerate helm docs if necessary | |
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@4a622625f9863bb73651cab161bb01d30aaa1b52 # v5.16.0 | |
with: | |
pre-commit-args: helm-docs || true | |
skip_checkout: "true" | |
- name: Git Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 | |
with: | |
commit_message: | | |
🛠 Updatecli pipeline acs bump | |
commit_user_name: ${{ vars.BOT_GITHUB_USERNAME }} | |
commit_user_email: ${{ vars.BOT_GITHUB_EMAIL }} | |
branch: ${{ github.ref_name == 'main' && 'updatecli-bump-acs' || github.ref_name }} | |
create_branch: ${{ github.ref_name == 'main' }} | |
push_options: ${{ github.ref_name == 'main' && '--force' || '' }} |