Skip to content

Commit

Permalink
Log in with aws actions
Browse files Browse the repository at this point in the history
  • Loading branch information
junlarsen committed Feb 20, 2024
1 parent baabef6 commit a87a043
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a87a043

Please sign in to comment.