|
24 | 24 | build-docker-nextcloud: |
25 | 25 | runs-on: ubuntu-latest |
26 | 26 | steps: |
| 27 | + - uses: actions/cache@v3 |
| 28 | + id: cache-solid-nextcloud-docker |
| 29 | + with: |
| 30 | + path: cache/solid-nextcloud |
| 31 | + key: solid-nextcloud-docker-${{ github.sha }} |
| 32 | + |
27 | 33 | - uses: actions/checkout@v3 |
28 | 34 |
|
29 | 35 | - uses: docker/login-action@v2 |
|
34 | 40 |
|
35 | 41 | - name: Build Solid-Nextcloud Docker image |
36 | 42 | run: | |
37 | | - docker build -t "ghcr.io/pdsinterop/solid-nextcloud:${{ github.sha }}" . |
| 43 | + docker build \ |
| 44 | + --tag "solid-nextcloud:${{ github.sha }}" \ |
| 45 | + --tag "ghcr.io/pdsinterop/solid-nextcloud:${{ github.sha }}" \ |
| 46 | + . |
38 | 47 | docker push "ghcr.io/pdsinterop/solid-nextcloud:${{ github.sha }}" |
| 48 | + mkdir -p cache/solid-nextcloud |
| 49 | + docker image save solid-nextcloud:${{ github.sha }} --output ./cache/solid-nextcloud/${{ github.sha }}.tar |
39 | 50 |
|
40 | 51 | solid-testsuite: |
41 | 52 | strategy: |
|
54 | 65 | steps: |
55 | 66 | - uses: actions/checkout@v3 |
56 | 67 |
|
| 68 | + - uses: actions/cache@v3 |
| 69 | + id: cache-solid-nextcloud-docker |
| 70 | + with: |
| 71 | + path: cache/solid-nextcloud |
| 72 | + key: solid-nextcloud-docker-${{ github.sha }} |
| 73 | + |
57 | 74 | - uses: docker/login-action@v2 |
58 | 75 | with: |
59 | 76 | registry: ghcr.io |
|
62 | 79 |
|
63 | 80 | - name: Pull docker Images |
64 | 81 | run: | |
| 82 | + docker image load --input ./cache/solid-nextcloud/${{ github.sha }}.tar |
65 | 83 | docker pull michielbdejong/nextcloud-cookie:${{ env.COOKIE_TAG }} |
66 | 84 | docker pull ${{ matrix.test }} |
67 | | - docker pull ghcr.io/pdsinterop/solid-nextcloud:${{ github.sha }} |
68 | 85 | docker pull ghcr.io/pdsinterop/php-solid-pubsub-server:${{ env.PUBSUB_TAG }} |
69 | 86 |
|
70 | 87 | - name: Start Docker Containers |
|
78 | 95 | "ghcr.io/pdsinterop/php-solid-pubsub-server:${{ env.PUBSUB_TAG }}" |
79 | 96 |
|
80 | 97 | source ./run-solid-test-suite.sh |
81 | | - startSolidNextcloud 'server' "ghcr.io/pdsinterop/solid-nextcloud:${{ github.sha }}" ${{ matrix.test }} |
82 | | - startSolidNextcloud 'thirdparty' "ghcr.io/pdsinterop/solid-nextcloud:${{ github.sha }}" ${{ matrix.test }} |
| 98 | + startSolidNextcloud 'server' "solid-nextcloud:${{ github.sha }}" ${{ matrix.test }} |
| 99 | + startSolidNextcloud 'thirdparty' "solid-nextcloud:${{ github.sha }}" ${{ matrix.test }} |
83 | 100 |
|
84 | 101 | echo "COOKIE_server=${COOKIE_server}" >> "${GITHUB_ENV}" |
85 | 102 | echo "COOKIE_thirdparty=${COOKIE_thirdparty}" >> "${GITHUB_ENV}" |
|
0 commit comments