Skip to content

Commit

Permalink
do not merge: Load docker image when the file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Sep 21, 2024
1 parent 3809670 commit 196aeef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ jobs:
key: ${{ env.DOCKER_IMAGE }}:${{ env.DOCKER_LATEST_TAG }}
- name: Load or pull docker image
run: |
docker load -i /home/runner/docker-images/"${DOCKER_IMAGE}" || \
if [ -f /home/runner/docker-images/"${DOCKER_IMAGE}" ]; then
docker load -i /home/runner/docker-images/"${DOCKER_IMAGE}"
else
docker pull "${DOCKER_REGISTRY}/${DOCKER_ORG}/${DOCKER_IMAGE}:${DOCKER_LATEST_TAG}"
fi
- name: Cache quibble docker image
if: ${{ matrix.stage == 'coverage' || matrix.stage == 'phan' }}
uses: actions/cache@v3
Expand All @@ -123,8 +126,11 @@ jobs:
- name: Load or pull quibble docker image
if: ${{ matrix.stage == 'coverage' || matrix.stage == 'phan' }}
run: |
docker load -i /home/runner/docker-images/"${QUIBBLE_DOCKER_IMAGE}" || \
if [ -f /home/runner/docker-images/"${QUIBBLE_DOCKER_IMAGE}" ]; then
docker load -i /home/runner/docker-images/"${QUIBBLE_DOCKER_IMAGE}"
else
docker pull "${DOCKER_REGISTRY}/${DOCKER_ORG}/${QUIBBLE_DOCKER_IMAGE}:${QUIBBLE_DOCKER_LATEST_TAG}"
fi
- name: Cache MediaWiki installation
uses: actions/cache@v3
Expand Down

0 comments on commit 196aeef

Please sign in to comment.