File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ jobs:
12
12
tag-and-push :
13
13
runs-on : [self-hosted, cere-network-xlarge]
14
14
steps :
15
- - name : Configure AWS credentials
16
- uses : aws-actions/configure-aws-credentials@v1
15
+ - name : Configure aws credentials
16
+ uses : aws-actions/configure-aws-credentials@v2
17
17
with :
18
- aws-access-key-id : ${{ secrets.DEV_NETWORK_AWS_ACCESS_KEY_ID }}
19
- aws-secret-access-key : ${{ secrets.DEV_NETWORK_AWS_SECRET_ACCESS_KEY }}
18
+ role-to-assume : arn:aws:iam:: ${{ vars.SHARED_AWS_ACCOUNT_ID }}:role/github
19
+ role-session-name : ${{ github.event.repository.name }}
20
20
aws-region : us-west-2
21
+
21
22
- name : Login to Amazon ECR
22
23
id : login-ecr
23
24
uses : aws-actions/amazon-ecr-login@v1
30
31
docker image tag $ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA $ECR_REGISTRY/$ECR_REPOSITORY:${GITHUB_REF##*/}
31
32
docker image tag $ECR_REGISTRY/$ECR_REPOSITORY:$GITHUB_SHA $DOCKERHUB_REPOSITORY/$PACKAGE_NAME:latest
32
33
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${GITHUB_REF##*/}
34
+
33
35
- name : Login to DockerHub
34
36
uses : docker/login-action@v1
35
37
with :
You can’t perform that action at this time.
0 commit comments