Skip to content

Commit 13fbd2b

Browse files
author
Madan Shah
committed
fix(ci): make public ECR push non-fatal until repo is provisioned in 496607027995
1 parent f37985a commit 13fbd2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/docker-publish-ecr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,22 @@ jobs:
145145
.
146146
147147
- name: Configure public ECR credentials
148+
continue-on-error: true
148149
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
149150
with:
150151
role-to-assume: ${{ vars.PUBLIC_AWS_ROLE_TO_ASSUME }}
151152
aws-region: ${{ env.PUBLIC_ECR_REGION }}
152153

153154
- name: Login to public ECR
155+
continue-on-error: true
154156
run: |
155157
aws ecr-public get-login-password --region "${PUBLIC_ECR_REGION}" \
156158
| docker login --username AWS --password-stdin "${PUBLIC_ECR_REGISTRY}"
157159
158160
- name: Copy image to public ECR
161+
continue-on-error: true
159162
run: |
160163
set -euo pipefail
161-
# imagetools create copies the manifest from private ECR (docker login still valid)
162-
# to public ECR using the public ECR docker login obtained above.
163164
docker buildx imagetools create \
164165
--tag "${PUBLIC_IMAGE_REF}" \
165166
"${IMAGE_REF}"

0 commit comments

Comments
 (0)