Automated - Update component image digests #8487
Workflow file for this run
This file contains hidden or 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: ARO HCP Continuous Deployment | |
| env: | |
| DEPLOY_ENV: dev | |
| PERSIST: true | |
| SKIP_CONFIRM: true | |
| AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
| AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
| AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| PRINCIPAL_ID: ${{ secrets.GHA_PRINCIPAL_ID }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| push: | |
| type: boolean | |
| description: Enable push to registry for services built in this workflow | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/aro-hcp-cd.yml' | |
| - '.github/workflows/environment-infra-cd.yml' | |
| - '.github/workflows/services-cd.yml' | |
| - '.github/workflows/services-ci.yml' | |
| - 'config/config.yaml' | |
| - 'dev-infrastructure/**/*.bicep' | |
| - 'dev-infrastructure/**/*.bicepparam' | |
| - 'dev-infrastructure/configurations/*' | |
| - 'frontend/**' | |
| - 'admin/**' | |
| - 'backend/**' | |
| - 'cluster-service/**' | |
| - 'internal/**' | |
| - 'maestro/**' | |
| - 'pko/**' | |
| - 'acm/**' | |
| - 'hypershiftoperator/**' | |
| - 'image-sync/**/' | |
| - 'tooling/templatize/**' | |
| - 'config/*' | |
| types: | |
| - closed | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| jobs: | |
| no_reruns: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: No reruns please | |
| run: | | |
| if [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then | |
| echo "No re-runs allowed, trigger workflow manually." | |
| exit 1 | |
| else | |
| echo "not a re-run" | |
| fi | |
| deploy_global_rg: | |
| name: 'Deploy global resources' | |
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
| permissions: | |
| id-token: 'write' | |
| contents: 'read' | |
| needs: | |
| - no_reruns | |
| env: | |
| DEPLOY_ENV: dev | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2 | |
| with: | |
| fetch-depth: 1 | |
| - name: "install azure-cli" | |
| uses: "Azure/ARO-HCP@main" | |
| - name: 'Az CLI login' | |
| uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - uses: oras-project/setup-oras@v1 | |
| with: | |
| version: 1.2.3 | |
| - name: 'Deploy' | |
| run: | | |
| # https://github.com/actions/runner-images/issues/11987 | |
| az config set bicep.use_binary_from_path=false | |
| az bicep install | |
| cd dev-infrastructure/ | |
| # Manage ACR | |
| make global acr | |
| # Setup operator roles for platform workload identity | |
| make operator-roles | |
| # Manage Kusto in Dev | |
| make kusto | |
| service_ci: | |
| name: 'Build service images' | |
| permissions: | |
| id-token: 'write' | |
| contents: 'read' | |
| secrets: inherit | |
| uses: ./.github/workflows/services-ci.yml | |
| with: | |
| push: ${{ inputs.push || github.event.pull_request.merged == true }} | |
| deploy_dev_environment_infra: | |
| name: 'Deploy integrated DEV infrastructure' | |
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
| needs: | |
| - deploy_global_rg | |
| permissions: | |
| id-token: 'write' | |
| contents: 'read' | |
| secrets: inherit | |
| uses: ./.github/workflows/environment-infra-cd.yml | |
| with: | |
| deploy_env: dev | |
| deploy_dev_environment_services: | |
| name: 'Deploy services to integrated DEV' | |
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
| needs: | |
| - service_ci | |
| - deploy_dev_environment_infra | |
| permissions: | |
| id-token: 'write' | |
| contents: 'read' | |
| secrets: inherit | |
| uses: ./.github/workflows/services-cd.yml | |
| with: | |
| deploy_env: dev | |
| # CS PR env deployment disabled during testing | |
| deploy_cs_pr_environment_infra: | |
| name: 'Deploy CS PR infrastructure' | |
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
| needs: | |
| - deploy_global_rg | |
| permissions: | |
| id-token: 'write' | |
| contents: 'read' | |
| secrets: inherit | |
| uses: ./.github/workflows/environment-infra-cd.yml | |
| with: | |
| deploy_env: cspr | |
| deploy_cs_pr_check_deps: true | |
| deploy_cs_pr_environment_services: | |
| name: 'Deploy services to CS PR' | |
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | |
| needs: | |
| - service_ci | |
| - deploy_cs_pr_environment_infra | |
| permissions: | |
| id-token: 'write' | |
| contents: 'read' | |
| secrets: inherit | |
| uses: ./.github/workflows/services-cd.yml | |
| with: | |
| deploy_env: cspr | |
| deploy_cs_pr_check_deps: true |