Skip to content

refactor to external updatecli config #81

refactor to external updatecli config

refactor to external updatecli config #81

Workflow file for this run

---
name: Bump component versions
on:
push:
paths:
- .github/workflows/bumpVersions.yml
branches:
- OPSEXP-**
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Updatecli
uses: updatecli/updatecli-action@v2
with:
version: v0.54.0
- name: Checkout updatecli configs
uses: actions/checkout@v3
with:
repository: alfresco/alfresco-updatecli
ref: OPSEXP-2174-acs-deployment
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 }}
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4.16.0
with:
commit_message: |
🛠 Updatecli pipeline acs bump
branch: ${{ github.event_name == 'workflow_dispatch' && 'updatecli-bump-acs' || '' }}
create_branch: ${{ github.event_name == 'workflow_dispatch' }}
push_options: ${{ github.event_name == 'workflow_dispatch' && '--force' || '' }}