|
73 | 73 | username: ${{ github.actor }}
|
74 | 74 | password: ${{ secrets.DOCKER_CI }}
|
75 | 75 |
|
| 76 | + - name: Cache docker layers |
| 77 | + uses: actions/cache@v4 |
| 78 | + with: |
| 79 | + path: /tmp/.buildx-cache |
| 80 | + key: ${{ github.ref }}-${{ github.sha }} |
| 81 | + restore-keys: | |
| 82 | + ${{ github.ref }}-${{ github.sha }} |
| 83 | + ${{ github.ref }} |
| 84 | + refs/head/main |
| 85 | +
|
76 | 86 | - name: 🐳 Set up Docker metadata
|
77 | 87 | id: docker_metadata
|
78 | 88 | uses: docker/metadata-action@v5
|
|
90 | 100 | org.opencontainers.image.source=${{ github.server_url }}/hyperion.docker-ci
|
91 | 101 | org.opencontainers.image.documentation=https://docs.hyperion-project.org/
|
92 | 102 | org.opencontainers.image.licenses=MIT
|
| 103 | + cache-from: type=local,src=/tmp/.buildx-cache |
| 104 | + cache-to: type=local,dest=/tmp/.buildx-cache |
93 | 105 |
|
94 | 106 | - name: 👷 Build and 🚀 Push to GitHub Container/Package Registry
|
95 | 107 | uses: docker/build-push-action@v5
|
@@ -141,10 +153,20 @@ jobs:
|
141 | 153 | - name: 🐳 Set up Docker Buildx
|
142 | 154 | uses: docker/setup-buildx-action@v3
|
143 | 155 |
|
| 156 | + - name: Cache docker layers |
| 157 | + uses: actions/cache@v4 |
| 158 | + with: |
| 159 | + path: /tmp/.buildx-cache |
| 160 | + key: ${{ github.ref }}-${{ github.sha }} |
| 161 | + restore-keys: | |
| 162 | + ${{ github.ref }}-${{ github.sha }} |
| 163 | + ${{ github.ref }} |
| 164 | + refs/head/main |
| 165 | +
|
144 | 166 | - name: 👷 Build, 🔀 Combine and 🚀 Push to GitHub Container/Package Registry
|
145 | 167 | run: |
|
146 | 168 | echo ${{ secrets.DOCKER_CI }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
147 |
| - docker buildx build --provenance=false --push --build-arg SUITE=${{ matrix.os.codename }} --build-arg QT_VERSION=${{ matrix.qt_version }} --platform=linux/arm/v6 --tag ghcr.io/${{ env.REPOSITORY }}/debian:${{ env.IMAGE }}-armv6 --file debian-armv6 . |
| 169 | + docker buildx build --provenance=false --push --cache-to type=local,dest=/tmp/.buildx-cache --cache-from type=local,src=/tmp/.buildx-cache --build-arg SUITE=${{ matrix.os.codename }} --build-arg QT_VERSION=${{ matrix.qt_version }} --platform=linux/arm/v6 --tag ghcr.io/${{ env.REPOSITORY }}/debian:${{ env.IMAGE }}-armv6 --file debian-armv6 . |
148 | 170 | docker buildx imagetools create -t ghcr.io/${{ env.REPOSITORY }}/debian:${{ env.IMAGE }} --append ghcr.io/${{ env.REPOSITORY }}/debian:${{ env.IMAGE }}-armv6
|
149 | 171 | env:
|
150 | 172 | IMAGE: ${{ matrix.qt_version == '6' && format('{0}-qt6', matrix.os.codename) || matrix.os.codename }}
|
|
0 commit comments