Skip to content

Commit a3a05d7

Browse files
Configure AWS and push image to ECR (#54)
Added AWS role and ECR push
1 parent fa822f4 commit a3a05d7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,16 @@ jobs:
5050
username: ${{ secrets.DOCKER_USERNAME }}
5151
password: ${{ secrets.DOCKER_PASSWORD }}
5252
image_tag: latest,${{ env.RELEASE }}
53+
- name: Configure AWS credentials
54+
uses: aws-actions/configure-aws-credentials@v1
55+
with:
56+
role-to-assume: arn:aws:iam::538673716275:role/dea-conflux_github-actions-role
57+
aws-region: ap-southeast-2
58+
- name: Push image to ECR
59+
uses: whoan/docker-build-with-cache-action@master
60+
with:
61+
context: ./docker
62+
registry: 538673716275.dkr.ecr.ap-southeast-2.amazonaws.com
63+
image_name: ${{ env.IMAGE_NAME }}
64+
image_tag: latest,${{ env.RELEASE }}
65+
build_extra_args: '{"--build-arg": "UPDATE_VERSION=${{ env.RELEASE }}"}'

0 commit comments

Comments
 (0)