File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,18 @@ jobs:
22
22
aws-region : us-east-1
23
23
24
24
- name : Login to Amazon ECR
25
- id : login-ecr
25
+ id : login-ecr-public
26
26
uses : aws-actions/amazon-ecr-login@v2
27
+ with :
28
+ registry-type : public
27
29
28
30
- name : Build, tag, and push image to Amazon ECR
29
31
id : build-image
30
32
env :
31
- ECR_REPOSITORY : public.ecr.aws/h6o3z5z9/aws-application-signals-test-framework-workflow-container
33
+ REGISTRY : ${{ steps.login-ecr-public.outputs.registry }}
34
+ REGISTRY_ALIAS : h6o3z5z9
35
+ REPOSITORY : aws-application-signals-test-framework-workflow-container
32
36
IMAGE_TAG : latest
33
37
run : |
34
- docker build -t $ECR_REPOSITORY :$IMAGE_TAG .
35
- docker push $ECR_REPOSITORY :$IMAGE_TAG
38
+ docker build -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY :$IMAGE_TAG .
39
+ docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY :$IMAGE_TAG
You can’t perform that action at this time.
0 commit comments