|
18 | 18 | description: 'Name of the environment defined in GitHub.' |
19 | 19 | required: true |
20 | 20 | type: string |
21 | | - deploy_clusters: |
22 | | - description: 'Names of clusters to deploy to, space separated.' |
23 | | - required: true |
24 | | - type: string |
25 | 21 | probe_clusters: |
26 | 22 | description: 'Name of clusters to deploy probe to, space separated.' |
27 | 23 | required: true |
|
34 | 30 |
|
35 | 31 | env: |
36 | 32 | HELM_DRY_RUN: ${{ inputs.dry_run }} |
37 | | - # Credentials are populated by explicit `configure-aws-credentials` jobs in |
38 | | - # the workflow, so loading additional credentials in the terraform_cluster.sh |
39 | | - # script is not necessary. |
40 | | - AWS_AUTH_HELPER: none |
41 | 33 |
|
42 | 34 | jobs: |
43 | | - terraform: |
44 | | - name: Re-terraform ${{ inputs.acs_environment }} clusters |
45 | | - runs-on: ubuntu-latest |
46 | | - permissions: |
47 | | - id-token: write |
48 | | - contents: read |
49 | | - environment: ${{ inputs.github_environment }} |
50 | | - steps: |
51 | | - - name: Set up Go 1.20 |
52 | | - uses: actions/setup-go@v3 |
53 | | - with: |
54 | | - go-version: "1.20" |
55 | | - - name: Checkout |
56 | | - uses: actions/checkout@v3 |
57 | | - with: |
58 | | - fetch-depth: 0 # Critical for correct image detection in deploy script |
59 | | - - name: Configure AWS credentials |
60 | | - uses: aws-actions/configure-aws-credentials@v1-node16 |
61 | | - with: |
62 | | - aws-region: ${{ secrets.AWS_REGION }} |
63 | | - role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github |
64 | | - - name: Run terraforming on ${{ inputs.deploy_clusters }} |
65 | | - working-directory: ./dp-terraform/helm/rhacs-terraform |
66 | | - run: | |
67 | | - set -euo pipefail |
68 | | - # shellcheck disable=SC2043 |
69 | | - for cluster in ${{ inputs.deploy_clusters }} |
70 | | - do |
71 | | - echo "Running script terraform_cluster.sh on ${cluster}" |
72 | | - ./terraform_cluster.sh ${{ inputs.acs_environment }} "${cluster}" |
73 | | - echo "Script terraform_cluster.sh on ${cluster} succeeded" |
74 | | - done |
75 | | -
|
76 | 35 | deploy-probe: |
77 | 36 | name: Deploy blackbox monitoring probe service to ${{ inputs.acs_environment }} |
78 | 37 | runs-on: ubuntu-latest |
|
0 commit comments