|
67 | 67 | dv_qms: ${{ secrets.DV_QMS }} |
68 | 68 | actor: ${{ github.actor }} |
69 | 69 | qms_are_allowed: "true" |
70 | | - - name: Configure AWS Credentials |
71 | | - uses: aws-actions/[email protected] |
72 | | - with: |
73 | | - role-to-assume: ${{ secrets.DV_AWS_ECR_ROLE }} |
74 | | - aws_role: ${{ secrets.DV_AWS_ECR_ROLE }} |
75 | | - aws-region: ${{ secrets.DV_AWS_REGION }} |
76 | | - - name: Login to Amazon ECR |
77 | | - id: login-ecr |
78 | | - uses: aws-actions/[email protected] |
79 | 70 | - uses: ./tmp/github-workflows/.github/actions/get-product-parameters |
80 | 71 | id: get-parameters |
81 | 72 | with: |
|
93 | 84 | ref: ${{ env.WORKFLOW_BRANCH }} |
94 | 85 | github_user: ${{ secrets.DV_BOT_USER }} |
95 | 86 | client_payload: '{ "app": "${{ steps.get-parameters.outputs.app }}", "customer": "${{ inputs.customer }}", "stage": "${{ inputs.stage }}", "sub_app": "${{ steps.get-parameters.outputs.sub_app }}", "branch": "${{ steps.get-parameters.outputs.image_tag2 }}", "add_revision_as_tag": "${{ fromJSON(inputs.add_revision_as_tag) }}" }' |
| 87 | + - name: Configure AWS Credentials |
| 88 | + if: ${{ inputs.add_revision_as_tag }} == true |
| 89 | + uses: aws-actions/[email protected] |
| 90 | + with: |
| 91 | + role-to-assume: ${{ secrets.DV_AWS_ECR_ROLE }} |
| 92 | + aws_role: ${{ secrets.DV_AWS_ECR_ROLE }} |
| 93 | + aws-region: ${{ secrets.DV_AWS_REGION }} |
| 94 | + - name: Login to Amazon ECR |
| 95 | + if: ${{ inputs.add_revision_as_tag }} == true |
| 96 | + id: login-ecr |
| 97 | + uses: aws-actions/[email protected] |
96 | 98 | - name: get revision label |
97 | 99 | id: get-revision-label |
98 | | - if: ${{ inputs.add_revision_as_tag }} == true && ${{ inputs.customer }} == 'maze' |
| 100 | + if: ${{ inputs.add_revision_as_tag }} == true |
99 | 101 | run: | |
100 | 102 | echo "fetch labels of image" |
101 | 103 | ECR_REPO=$(echo ${{ steps.get-parameters.outputs.ecr_repos }} | cut -d ',' -f 1) |
|
0 commit comments