Skip to content

Commit

Permalink
Merge branch 'master' of github-personal.com:najamuslim/go-health-record
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhanramadhana committed May 19, 2024
2 parents c9491ef + 4b9f7e4 commit c6fa8a9
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
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@v1
with:
region: ${{ secrets.AWS_REGION }}
access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.ECR_REPOSITORY }}
- name: Build, tag, and push Docker image
env:
Expand Down

0 comments on commit c6fa8a9

Please sign in to comment.