Skip to content

ARO HCP Continuous Deployment #9098

ARO HCP Continuous Deployment

ARO HCP Continuous Deployment #9098

Workflow file for this run

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:
workflow_run:
workflows: ["Publish Service Images"]
types: [completed]
branches: [main]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
preflight:
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
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_dev_environment_infra:
name: 'Deploy integrated DEV infrastructure'
needs:
- preflight
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'
needs:
- 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'
needs:
- preflight
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'
needs:
- 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