Skip to content

Commit fce68cd

Browse files
committed
Move to aws ecr for image store (4)
1 parent 2a87f42 commit fce68cd

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,17 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Configure AWS credentials
13-
uses: aws-actions/configure-aws-credentials@v4
12+
- uses: aws-actions/configure-aws-credentials@v4
1413
with:
1514
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
1615
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1716
aws-region: ${{ secrets.AWS_REGION }}
1817

19-
- name: Login to Amazon ECR
20-
id: login-ecr
21-
uses: aws-actions/amazon-ecr-login@v2
22-
23-
- name: Set up Docker Buildx
24-
uses: docker/setup-buildx-action@v3
18+
- name: Login to Public ECR
19+
run: |
20+
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
2521
26-
- name: Build and push Docker image
27-
env:
28-
ECR_REGISTRY: public.ecr.aws/y4j3k0r4
29-
ECR_REPOSITORY: base-deployment
22+
- name: Build and push
3023
run: |
31-
chmod +x build.sh
32-
./build.sh
24+
docker build -t public.ecr.aws/x3t7k2c8/base-deployment:latest .
25+
docker push public.ecr.aws/x3t7k2c8/base-deployment:latest

0 commit comments

Comments
 (0)