|
16 | 16 |
|
17 | 17 | steps:
|
18 | 18 | - uses: actions/checkout@v4
|
| 19 | + |
| 20 | + - name: Restore Neo4j Image Cache if it exists |
| 21 | + id: cache-docker-neo4j |
| 22 | + uses: actions/cache@v4 |
| 23 | + with: |
| 24 | + path: ci/cache/docker/neo4j |
| 25 | + key: cache-docker-neo4j-4-enterprise |
| 26 | + |
| 27 | + - name: Update Neo4j Image Cache if cache miss |
| 28 | + if: steps.cache-docker-neo4j.outputs.cache-hit != 'true' |
| 29 | + run: | |
| 30 | + docker pull neo4j:4.4-enterprise |
| 31 | + mkdir -p ci/cache/docker/neo4j |
| 32 | + docker image save neo4j:4.4-enterprise --output ./ci/cache/docker/neo4j/neo4j-4-enterprise.tar |
| 33 | +
|
| 34 | + - name: Use Neo4j Image Cache if cache hit |
| 35 | + if: steps.cache-docker-neo4j.outputs.cache-hit == 'true' |
| 36 | + run: docker image load --input ./ci/cache/docker/neo4j/neo4j-4-enterprise.tar |
| 37 | + |
19 | 38 | - name: Populate .env
|
20 | 39 | run: |
|
21 | 40 | echo "PHP_VERSION=${{ matrix.php }}" > .env
|
|
78 | 97 | run: |
|
79 | 98 | echo "PHP_VERSION=${{ matrix.php }}" > .env
|
80 | 99 |
|
| 100 | + - name: Restore Neo4j Image Cache if it exists |
| 101 | + id: cache-docker-neo4j |
| 102 | + uses: actions/cache@v4 |
| 103 | + with: |
| 104 | + path: ci/cache/docker/neo4j |
| 105 | + key: cache-docker-neo4j-5-community |
| 106 | + |
| 107 | + - name: Update Neo4j Image Cache if cache miss |
| 108 | + if: steps.cache-docker-neo4j.outputs.cache-hit != 'true' |
| 109 | + run: | |
| 110 | + docker pull neo4j:5.23-community |
| 111 | + mkdir -p ci/cache/docker/neo4j |
| 112 | + docker image save neo4j:5.23-community --output ./ci/cache/docker/neo4j/neo4j-5-community.tar |
| 113 | +
|
| 114 | + - name: Use Neo4j Image Cache if cache hit |
| 115 | + if: steps.cache-docker-neo4j.outputs.cache-hit == 'true' |
| 116 | + run: docker image load --input ./ci/cache/docker/neo4j/neo4j-5-community.tar |
| 117 | + |
81 | 118 | - name: Cache PHP deps
|
82 | 119 | id: cache-php-deps
|
83 | 120 | uses: actions/cache@v4
|
|
0 commit comments