Skip to content

Commit 072fa99

Browse files
committed
Test
1 parent 04b5fae commit 072fa99

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/e2e-test-docker-image-build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@ jobs:
2222
aws-region: us-east-1
2323

2424
- name: Login to Amazon ECR
25-
id: login-ecr
25+
id: login-ecr-public
2626
uses: aws-actions/amazon-ecr-login@v2
27+
with:
28+
registry-type: public
2729

2830
- name: Build, tag, and push image to Amazon ECR
2931
id: build-image
3032
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
3236
IMAGE_TAG: latest
3337
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

0 commit comments

Comments
 (0)