Skip to content

Commit

Permalink
ci(pytest): fix cached image loading from /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 19, 2023
1 parent ae16d40 commit 293f2df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/r-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,27 @@ jobs:
with:
name: ${{ needs.cache-img-postgis.outputs.cache_key }}
path: /tmp/${{ needs.cache-img-postgis.outputs.cache_key }}.tar
# continue-on-error: true

- name: Download ODK Img
uses: actions/download-artifact@v3
with:
name: ${{ needs.cache-img-odk.outputs.cache_key }}
path: /tmp/${{ needs.cache-img-odk.outputs.cache_key }}.tar
# continue-on-error: true

- name: Download ODK Proxy Img
uses: actions/download-artifact@v3
with:
name: ${{ needs.cache-img-odk-proxy.outputs.cache_key }}
path: /tmp/${{ needs.cache-img-odk-proxy.outputs.cache_key }}.tar
# continue-on-error: true

- name: Load Cached Imgs
run: |
docker image load --input ${{ needs.cache-img-postgis.outputs.cache_key }}.tar || true
docker image load --input ${{ needs.cache-img-odk.outputs.cache_key }}.tar || true
docker image load --input ${{ needs.cache-img-odk-proxy.outputs.cache_key.tar }} || true
docker image load --input /tmp/${{ needs.cache-img-postgis.outputs.cache_key }}.tar || true
docker image load --input /tmp/${{ needs.cache-img-odk.outputs.cache_key }}.tar || true
docker image load --input /tmp/${{ needs.cache-img-odk-proxy.outputs.cache_key }}.tar || true
- name: Environment to .env
env:
Expand Down

0 comments on commit 293f2df

Please sign in to comment.