|
18 | 18 | default: false
|
19 | 19 |
|
20 | 20 | env:
|
21 |
| - ANSIBLE_FORCE_COLOR: True |
| 21 | + ANSIBLE_FORCE_COLOR: true |
22 | 22 | ANSIBLE_VAULT_PASSWORD_FILE: ${{ github.workspace }}/vault-pass
|
23 | 23 | jobs:
|
24 | 24 | container-promote:
|
25 | 25 | name: Promote container repositories
|
26 | 26 | runs-on: ubuntu-latest
|
27 | 27 | steps:
|
28 |
| - - name: Checkout |
29 |
| - uses: actions/checkout@v4 |
| 28 | + - name: Checkout |
| 29 | + uses: actions/checkout@v4 |
30 | 30 |
|
31 |
| - - name: Setup Release Train & dependencies |
32 |
| - uses: ./.github/actions/setup |
33 |
| - with: |
34 |
| - vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} |
35 |
| - vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }} |
| 31 | + - name: Setup Release Train & dependencies |
| 32 | + uses: ./.github/actions/setup |
| 33 | + with: |
| 34 | + vault-password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }} |
| 35 | + vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }} |
36 | 36 |
|
37 |
| - - name: Clone StackHPC Kayobe configuration repository |
38 |
| - uses: actions/checkout@v4 |
39 |
| - with: |
40 |
| - repository: stackhpc/stackhpc-kayobe-config |
41 |
| - ref: refs/heads/${{ github.event.inputs.kayobe_config_branch }} |
42 |
| - path: stackhpc-kayobe-config |
| 37 | + - name: Clone StackHPC Kayobe configuration repository |
| 38 | + uses: actions/checkout@v4 |
| 39 | + with: |
| 40 | + repository: stackhpc/stackhpc-kayobe-config |
| 41 | + ref: refs/heads/${{ github.event.inputs.kayobe_config_branch }} |
| 42 | + path: stackhpc-kayobe-config |
43 | 43 |
|
44 |
| - - name: Promote images from stackhpc-dev to stackhpc namespace in Ark |
45 |
| - run: | |
46 |
| - args="" |
47 |
| - if [[ $CHECK_MODE = true ]]; then |
48 |
| - args="$args --check --diff" |
49 |
| - fi |
50 |
| - ansible-playbook -i ansible/inventory \ |
51 |
| - ansible/dev-pulp-container-tag-query-kayobe.yml \ |
52 |
| - ansible/dev-pulp-container-promote.yml \ |
53 |
| - -e kolla_container_image_filter="'$FILTER'" \ |
54 |
| - -e kayobe_config_repo_path=./stackhpc-kayobe-config/ \ |
55 |
| - $args |
56 |
| - env: |
57 |
| - FILTER: ${{ github.event.inputs.filter }} |
58 |
| - CHECK_MODE: ${{ inputs.check_mode }} |
| 44 | + - name: Promote images from stackhpc-dev to stackhpc namespace in Ark |
| 45 | + run: | |
| 46 | + args="" |
| 47 | + if [[ $CHECK_MODE = true ]]; then |
| 48 | + args="$args --check --diff" |
| 49 | + fi |
| 50 | + ansible-playbook -i ansible/inventory \ |
| 51 | + ansible/dev-pulp-container-tag-query-kayobe.yml \ |
| 52 | + ansible/dev-pulp-container-promote.yml \ |
| 53 | + -e kolla_container_image_filter="'$FILTER'" \ |
| 54 | + -e kayobe_config_repo_path=./stackhpc-kayobe-config/ \ |
| 55 | + $args |
| 56 | + env: |
| 57 | + FILTER: ${{ github.event.inputs.filter }} |
| 58 | + CHECK_MODE: ${{ inputs.check_mode }} |
59 | 59 |
|
60 |
| - - name: Send message to Slack via Workflow Builder |
61 |
| - uses: ./.github/actions/slack-alert |
62 |
| - with: |
63 |
| - inputs: >- |
64 |
| - filter: ${{ inputs.filter }}\n |
65 |
| - kayobe_config_branch: ${{ inputs.kayobe_config_branch }}\n |
66 |
| - check_mode: ${{ inputs.check_mode }}\n |
67 |
| - slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |
68 |
| - slack-channel-id: ${{ vars.SLACK_CHANNEL_ID }} |
69 |
| - if: failure() |
| 60 | + - name: Send message to Slack via Workflow Builder |
| 61 | + uses: ./.github/actions/slack-alert |
| 62 | + with: |
| 63 | + inputs: >- |
| 64 | + filter: ${{ inputs.filter }}\n |
| 65 | + kayobe_config_branch: ${{ inputs.kayobe_config_branch }}\n |
| 66 | + check_mode: ${{ inputs.check_mode }}\n |
| 67 | + slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |
| 68 | + slack-channel-id: ${{ vars.SLACK_CHANNEL_ID }} |
| 69 | + if: failure() |
0 commit comments