Skip to content

Commit f8bd4f9

Browse files
test
1 parent b6c8a83 commit f8bd4f9

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

.github/workflows/CICD.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,8 @@ jobs:
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}}

0 commit comments

Comments
 (0)