Skip to content

Commit 5dc633f

Browse files
committed
auth to public
1 parent 8fecd1b commit 5dc633f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Set up Docker Buildx
3939
uses: docker/setup-buildx-action@v2
4040
with:
41-
driver: docker
41+
driver: docker-container
4242
platforms: linux/arm64
4343

4444
- name: Login to DockerHub
@@ -50,6 +50,8 @@ jobs:
5050
- name: Login to Amazon ECR Public
5151
id: login-ecr
5252
uses: aws-actions/amazon-ecr-login@v1
53+
with:
54+
public: true
5355

5456
- name: Build and push to DockerHub
5557
uses: docker/build-push-action@v4
@@ -60,7 +62,8 @@ jobs:
6062
${{ secrets.DOCKERHUB_USERNAME }}/lambda-playwright-python:latest
6163
${{ secrets.DOCKERHUB_USERNAME }}/lambda-playwright-python:${{ github.sha }}
6264
${{ secrets.DOCKERHUB_USERNAME }}/lambda-playwright-python:v${{ env.IMAGE_TAG }}
63-
platforms: linux/arm64
65+
cache-from: type=gha
66+
cache-to: type=gha,mode=max
6467

6568
- name: Build and push to Amazon ECR Public
6669
uses: docker/build-push-action@v4
@@ -72,6 +75,8 @@ jobs:
7275
public.ecr.aws/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
7376
public.ecr.aws/${{ env.ECR_REPOSITORY }}:v${{ env.IMAGE_TAG }}
7477
platforms: linux/arm64
78+
cache-from: type=gha
79+
cache-to: type=gha,mode=max
7580

7681
- name: Create Release
7782
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)