File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,26 @@ jobs:
314314 env :
315315 KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
316316
317+ - name : Pull container images
318+ run : |
319+ # Try up to 3 times to pull container images.
320+ for attempt in $(seq 3); do
321+ docker run -t --rm \
322+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
323+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
324+ ${{ steps.kayobe_image.outputs.kayobe_image }} \
325+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-container-image-pull.sh
326+ if [ "$?" = "0" ]; then
327+ echo "Pulled container images on attempt $attempt"
328+ exit 0
329+ fi
330+ echo "Failed to pull container images on attempt $attempt"
331+ done
332+ echo "Failed to pull container imagers after $attempt attempts"
333+ exit 1
334+ env :
335+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
336+
317337 - name : Service deploy
318338 run : |
319339 docker run -t --rm \
You can’t perform that action at this time.
0 commit comments