Skip to content

Commit

Permalink
Change AWS ECR account
Browse files Browse the repository at this point in the history
  • Loading branch information
khujin1 authored Jan 16, 2025
1 parent 957cde5 commit 7e4a605
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/docker_build_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ on:
- develop
workflow_dispatch:

# permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_MWP }}
# ECR_REGISTRY: 207912665906.dkr.ecr.ap-northeast-2.amazonaws.com
ECR_REGISTRY: 931639357206.dkr.ecr.ap-northeast-2.amazonaws.com
ECR_REGISTRY: 207912665906.dkr.ecr.ap-northeast-2.amazonaws.com
ECR_REPOSITORY: mwp/tails
IMAGE_TAG: ${{ github.sha }}
DOCKERFILE_PATH: docker/Dockerfile.tails-server
Expand All @@ -25,18 +28,19 @@ jobs:
status: starting
if: always()

- name: Checkout tails-server
uses: actions/checkout@v2
- name: Checkout source code
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
role-to-assume: arn:aws:iam::207912665906:role/mobilewallet-github-actions-role
role-session-name: MobileWalletEcrAccess

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR
id: build-and-push-to-ecr
Expand Down

0 comments on commit 7e4a605

Please sign in to comment.