Skip to content

Commit

Permalink
fix vars
Browse files Browse the repository at this point in the history
  • Loading branch information
micdes-pagopa committed Sep 14, 2023
1 parent 9628688 commit cf3202f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
push:
branches:
- '!1.0.x'
- 'ci-refactor'
# paths: ['src/**']
- '**'
paths:
- 'src/**'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ jobs:
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ vars.IAM_ROLE_ARN }}
role-to-assume: ${{ secrets.IAM_ROLE_ARN }}
role-session-name: ${{ env.NORM_REPO }}-${{ github.run_number }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
registries: "${{ vars.DEV_ACCOUNT_ID }},${{ vars.TEST_ACCOUNT_ID }}"
registries: "${{ secrets.DEV_ACCOUNT_ID }},${{ secrets.TEST_ACCOUNT_ID }}"

- name: Retag & push from DEV to TEST
run: |
APP_ECR_REPO_DEV="${{ vars.DEV_ECR_URL }}/${{ env.NORM_REPO }}"
APP_ECR_REPO_TEST="${{ vars.TEST_ECR_URL }}/${{ env.NORM_REPO }}"
APP_ECR_REPO_DEV="${{ secrets.DEV_ECR_URL }}/${{ env.NORM_REPO }}"
APP_ECR_REPO_TEST="${{ secrets.TEST_ECR_URL }}/${{ env.NORM_REPO }}"
APP_IMAGE_COMMIT_DEV="${APP_ECR_REPO_DEV}:commit-${{ github.sha }}"
APP_IMAGE_COMMIT_TEST="${APP_ECR_REPO_TEST}:commit-${{ github.sha }}"
Expand Down

0 comments on commit cf3202f

Please sign in to comment.