Skip to content

Commit 61479e6

Browse files
committed
chore: when approving images, first pull that image
"tag and push" stage of "merge to staging" jobs are run on a separate VM than the one that built the candidate image, so we need to pull that image before retagging it.
1 parent e80b05d commit 61479e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/approve-image.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ else
99
IMAGE_NAME_CANDIDATE=snyk/kubernetes-monitor:staging-candidate
1010
IMAGE_NAME_APPROVED=snyk/kubernetes-monitor:${1}-approved
1111

12+
docker pull ${IMAGE_NAME_CANDIDATE}
1213
docker tag ${IMAGE_NAME_CANDIDATE} ${IMAGE_NAME_APPROVED}
1314
docker push ${IMAGE_NAME_APPROVED}
1415
./scripts/slack-notify-push.sh ${IMAGE_NAME_APPROVED}

0 commit comments

Comments
 (0)