File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6262 aws-region : ${{ secrets.AWS_REGION }}
6363 - name : Login to Amazon ECR
64- id : login-ecr-public
65- uses : aws-actions/amazon-ecr-login@v2
66- with :
67- registry-type : public
68- - name : Build, tag, and push docker image to Amazon ECR Public
69- env :
70- REGISTRY : ${{ steps.login-ecr-public.outputs.registry }}
71- REGISTRY_ALIAS : m4f6w3w9
72- REPOSITORY : pegghy-viewer
73- IMAGE_TAG : ${{ github.sha }}
7464 run : |
75- docker build -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG .
76- docker push $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG
65+ aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/m4f6w3w9
66+ docker build -t pegghy-viewer .
67+ docker tag pegghy-viewer:latest public.ecr.aws/m4f6w3w9/pegghy-viewer:${{github.ref_name}}
68+ docker push public.ecr.aws/m4f6w3w9/pegghy-viewer:${{github.ref_name}}
You can’t perform that action at this time.
0 commit comments