From abc7f690593f76a9d3433adbbcbed04c5449e87b Mon Sep 17 00:00:00 2001 From: raisabarreto Date: Fri, 3 Jan 2025 16:36:25 -0300 Subject: [PATCH 1/4] fix: updates 'Deploy to Amazon ECS service' version to 2 --- .github/workflows/superbowleto_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/superbowleto_deploy.yml b/.github/workflows/superbowleto_deploy.yml index c0b0700..e1cbb0a 100644 --- a/.github/workflows/superbowleto_deploy.yml +++ b/.github/workflows/superbowleto_deploy.yml @@ -54,7 +54,7 @@ jobs: environment-variables: "DD_VERSION=${{ inputs.TAG }}" - name: Deploy to Amazon ECS service - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + uses: aws-actions/amazon-ecs-deploy-task-definition@v2 with: task-definition: ${{ steps.render-task-def.outputs.task-definition }} service: ${{ inputs.APP_NAME }} From 70b4398aecb2a4df27d41327c5c3df4de8b551a5 Mon Sep 17 00:00:00 2001 From: raisabarreto Date: Fri, 3 Jan 2025 17:38:52 -0300 Subject: [PATCH 2/4] fix: updates migrated secrets names --- .github/workflows/build_and_deploy_stg.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_deploy_stg.yml b/.github/workflows/build_and_deploy_stg.yml index d587ea3..b2f81ee 100644 --- a/.github/workflows/build_and_deploy_stg.yml +++ b/.github/workflows/build_and_deploy_stg.yml @@ -14,8 +14,8 @@ jobs: secrets: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - DOCKER_IMAGES_AWS_PULL_ACCESS_KEY_ID: ${{ secrets.DOCKER_IMAGES_AWS_PULL_ACCESS_KEY_ID }} - DOCKER_IMAGES_AWS_PULL_SECRET_ACCESS_KEY: ${{ secrets.DOCKER_IMAGES_AWS_PULL_SECRET_ACCESS_KEY }} + DOCKER_IMAGES_AWS_PULL_ACCESS_KEY_ID: ${{ secrets.EXPORTED_PAGARME_DOCKER_IMAGES_AWS_PULL_ACCESS_KEY_ID }} + DOCKER_IMAGES_AWS_PULL_SECRET_ACCESS_KEY: ${{ secrets.EXPORTED_PAGARME_DOCKER_IMAGES_AWS_PULL_SECRET_ACCESS_KEY }} deploy-stg: needs: build-stg From 9abdf2cdac654dc72ba4699c068872ae8bb9e504 Mon Sep 17 00:00:00 2001 From: raisabarreto Date: Fri, 3 Jan 2025 18:02:39 -0300 Subject: [PATCH 3/4] fix: adjusts migrated secrets names --- .github/workflows/lint_tests_and_sonar.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint_tests_and_sonar.yml b/.github/workflows/lint_tests_and_sonar.yml index 5781086..501542b 100644 --- a/.github/workflows/lint_tests_and_sonar.yml +++ b/.github/workflows/lint_tests_and_sonar.yml @@ -46,8 +46,8 @@ jobs: uses: aws-actions/configure-aws-credentials@v3 id: configure-ecr with: - aws-access-key-id: ${{ secrets.DOCKER_IMAGES_AWS_PULL_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.DOCKER_IMAGES_AWS_PULL_SECRET_ACCESS_KEY }} + aws-access-key-id: ${{ secrets.EXPORTED_PAGARME_DOCKER_IMAGES_AWS_PULL_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.EXPORTED_PAGARME_DOCKER_IMAGES_AWS_PULL_SECRET_ACCESS_KEY }} aws-region: us-east-1 mask-aws-account-id: "no" @@ -90,4 +90,4 @@ jobs: uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.PAYMENTS_SONAR_TOKEN }} From 914f3e73a2b4a36f4fa930cf88cdc426781ffd4b Mon Sep 17 00:00:00 2001 From: raisabarreto Date: Fri, 3 Jan 2025 18:16:56 -0300 Subject: [PATCH 4/4] fix: updates SONAR_TOKEN secret name --- .github/workflows/lint_tests_and_sonar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_tests_and_sonar.yml b/.github/workflows/lint_tests_and_sonar.yml index 501542b..26cf4a4 100644 --- a/.github/workflows/lint_tests_and_sonar.yml +++ b/.github/workflows/lint_tests_and_sonar.yml @@ -90,4 +90,4 @@ jobs: uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.PAYMENTS_SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.EXPORTED_PAGARME_SONAR_TOKEN }}