|
12 | 12 |
|
13 | 13 | strategy: |
14 | 14 | fail-fast: false |
| 15 | + max-parallel: 2 |
15 | 16 | matrix: |
16 | 17 | mediawiki_version: ['1.45', '1.44', '1.43', '1.39'] |
17 | 18 | target_repository: ['mediawiki', 'mediawiki-ci'] |
@@ -45,11 +46,13 @@ jobs: |
45 | 46 | - name: Cache Docker layers |
46 | 47 | uses: actions/cache@v4 |
47 | 48 | with: |
48 | | - path: /tmp/.buildx-cache/${{ matrix.mediawiki_version }} |
49 | | - key: ${{ runner.os }}-buildx-${{ github.sha }} |
| 49 | + path: /tmp/.buildx-cache/${{ matrix.mediawiki_version }}/php${{ matrix.php_version }} |
| 50 | + key: ${{ runner.os }}-buildx-${{ matrix.mediawiki_version }}-${{ matrix.php_version }} |
50 | 51 | restore-keys: | |
| 52 | + ${{ runner.os }}-buildx-${{ matrix.mediawiki_version }}- |
51 | 53 | ${{ runner.os }}-buildx- |
52 | 54 |
|
| 55 | +
|
53 | 56 | - uses: docker/login-action@v3 |
54 | 57 | with: |
55 | 58 | username: ${{ secrets.DOCKER_HUB_USERNAME }} |
@@ -105,9 +108,11 @@ jobs: |
105 | 108 | push: true |
106 | 109 | tags: ${{ env.TAGS }} |
107 | 110 | target: ${{ matrix.target_repository }} |
108 | | - cache-from: type=local,src=/tmp/.buildx-cache/${{ matrix.mediawiki_version }} |
109 | | - cache-to: type=local,dest=/tmp/.buildx-cache/${{ matrix.mediawiki_version }} |
110 | | - platforms: linux/amd64,linux/arm64 |
| 111 | + cache-from: type=local,src=/tmp/.buildx-cache/${{ matrix.mediawiki_version }}/php${{ matrix.php_version }} |
| 112 | + cache-to: type=local,dest=/tmp/.buildx-cache/${{ matrix.mediawiki_version }}/php${{ matrix.php_version }},mode=max |
| 113 | + # platforms: linux/amd64,linux/arm64 |
| 114 | + # temp. build only amd64: |
| 115 | + platforms: linux/amd64 |
111 | 116 |
|
112 | 117 | - name: Image digest |
113 | 118 | run: echo ${{ steps.docker_build.outputs.digest }} |
0 commit comments