Skip to content

Commit 5ef4c8a

Browse files
committed
aio workflow: add container image pull
to accomodate temporary errors from ark (was getting a 500 error)
1 parent 2a490b9 commit 5ef4c8a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)