From 73318c493bacc847c2bb1d974b6d7e5ed612c265 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Mon, 14 Jul 2025 15:14:49 +0000 Subject: [PATCH] see if login works --- .github/workflows/push_docker_image_to_ecr.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_docker_image_to_ecr.yml b/.github/workflows/push_docker_image_to_ecr.yml index 394f7da..cfbf6b9 100644 --- a/.github/workflows/push_docker_image_to_ecr.yml +++ b/.github/workflows/push_docker_image_to_ecr.yml @@ -9,7 +9,7 @@ env: ECR_REPOSITORY: survey_extractor jobs: - deploy: + build-and-push-to-elastic-container-registry: runs-on: ubuntu-latest permissions: @@ -20,13 +20,16 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Configure AWS credentials + - name: AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: arn:aws:iam:::role/ - aws-region: ${{ env.AWS_REGION }} + # as of 14/07/2025 it'll be using user:Junte's keys + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.AWS_REGION }} - name: Log in to Amazon ECR + id: login-ecr uses: aws-actions/amazon-ecr-login@v2 - name: Build, tag, and push Docker image to ECR