From a87a0439788c3a7e0c0cd33aa5265fdd9cf55018 Mon Sep 17 00:00:00 2001 From: Mats Larsen Date: Tue, 20 Feb 2024 10:39:24 +0100 Subject: [PATCH] Log in with aws actions --- .github/workflows/deploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 98ce804..db0ff28 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,13 +13,15 @@ jobs: - uses: actions/checkout@v2 - name: Set up QEMU uses: docker/setup-qemu-action@v1 - # Login - - name: Login to Docker registry - uses: docker/login-action@v1 + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 with: - registry: 891459268445.dkr.ecr.eu-north-1.amazonaws.com - username: AWS - password: ${{ secrets.DOCKER_PASSWORD }} + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: eu-north-1 + - name: Login to Amazon ECR Private + id: login-ecr + uses: aws-actions/amazon-ecr-login@v2 - name: Build and push Image to ECR id: docker_build uses: docker/build-push-action@v2