diff options
author | nicolargo <nicolashennion@gmail.com> | 2024-06-08 10:25:45 +0200 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2024-06-08 10:25:45 +0200 |
commit | bf3bb6a7e86f4f6a21d9ca908031c4d135c29236 (patch) | |
tree | fef87fa030b055663806e4d00b36275046509cbb /.github | |
parent | b1b8ea6966149df694ea7831df70dc6cbe9b9b01 (diff) | |
parent | 8d3b3691e595592bd700b7ed64eca5b87c0a4f44 (diff) |
Glances 4.0.8
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88385df1..024a37bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,19 +123,12 @@ jobs: - name: Retrieve Repository Docker metadata id: docker_meta - uses: crazy-max/ghaction-docker-meta@v5.0.0 + uses: docker/metadata-action@v5 with: images: ${{ env.DEFAULT_DOCKER_IMAGE }} labels: | org.opencontainers.image.url=https://nicolargo.github.io/glances/ - - name: Cache Docker layers - uses: actions/cache@v4 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ env.NODE_ENV }}-${{ matrix.os }}-${{ matrix.tag.tag }} - restore-keys: ${{ runner.os }}-buildx-${{ env.NODE_ENV }}-${{ matrix.os }} - - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: @@ -166,5 +159,7 @@ jobs: platforms: ${{ matrix.os != 'ubuntu' && env.DOCKER_PLATFORMS || env.DOCKER_PLATFORMS_UBUNTU }} target: ${{ matrix.tag.target }} labels: ${{ steps.docker_meta.outputs.labels }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache,mode=max + # GHA default behaviour overwrites last build cache. Causes alpine and ubuntu cache to overwrite each other. + # Use `scope` with the os name to prevent that + cache-from: 'type=gha,scope=${{ matrix.os }}' + cache-to: 'type=gha,mode=max,scope=${{ matrix.os }}' |