diff --git a/.github/actions/buildx-setup/action.yaml b/.github/actions/buildx-setup/action.yaml index 39b359e..282ca5c 100644 --- a/.github/actions/buildx-setup/action.yaml +++ b/.github/actions/buildx-setup/action.yaml @@ -5,7 +5,7 @@ runs: using: "composite" steps: - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx id: buildx diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index d56f87c..1fe2112 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -61,9 +61,9 @@ jobs: with: path: /tmp/.buildx-cache #key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-alpine-${{ github.sha }} restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-alpine- - name: Fix issue with building Alpine # See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406 run: | @@ -80,7 +80,7 @@ jobs: # linux/s390x: "rsyslog (no such package)" # Latest Alpine does not have all the packages for 386 anymore. :-( platforms: "linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le" - cache-from: type=local,src=/tmp/.buildx-cache/alpine + cache-from: type=local,src=/tmp/.buildx-cache/alpine,mode=max,compression=estargz cache-to: type=local,dest=/tmp/.buildx-cache-new/alpine build-args: | BASE_IMAGE=alpine:latest @@ -114,9 +114,9 @@ jobs: with: path: /tmp/.buildx-cache #key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-ubuntu-${{ github.sha }} restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-ubuntu- - name: Build and push Ubuntu uses: docker/build-push-action@v4 @@ -125,7 +125,7 @@ jobs: push: true tags: boky/postfix:latest-ubuntu platforms: "linux/arm/v7,linux/amd64,linux/arm64,linux/ppc64le,linux/s390x" - cache-from: type=local,src=/tmp/.buildx-cache/ubuntu + cache-from: type=local,src=/tmp/.buildx-cache/ubuntu,mode=max,compression=estargz cache-to: type=local,dest=/tmp/.buildx-cache-new/ubuntu build-args: | BASE_IMAGE=ubuntu:jammy diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 251688e..0e4b21c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -56,9 +56,9 @@ jobs: with: path: /tmp/.buildx-cache #key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-alpine-${{ github.sha }} restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-alpine- - name: Fix issue with building Alpine # See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406 run: | diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 8f1e55b..19694c8 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -63,9 +63,9 @@ jobs: with: path: /tmp/.buildx-cache #key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-alpine-${{ github.sha }} restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-alpine- - name: Fix issue with building Alpine # See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406 run: | @@ -82,7 +82,7 @@ jobs: # linux/s390x: "rsyslog (no such package)" # Latest Alpine does not have all packages for 386 any more :-( platforms: "linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le" - cache-from: type=local,src=/tmp/.buildx-cache/alpine + cache-from: type=local,src=/tmp/.buildx-cache/alpine,mode=max,compression=estargz cache-to: type=local,dest=/tmp/.buildx-cache-new/alpine build-args: | BASE_IMAGE=alpine:latest @@ -118,9 +118,9 @@ jobs: with: path: /tmp/.buildx-cache #key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-ubuntu-${{ github.sha }} restore-keys: | - ${{ runner.os }}-buildx- + ${{ runner.os }}-ubuntu- - name: Build and push Ubuntu uses: docker/build-push-action@v4 @@ -129,10 +129,10 @@ jobs: push: true tags: boky/postfix:${{ env.RELEASE_VERSION }}-ubuntu platforms: "linux/arm/v7,linux/amd64,linux/arm64,linux/ppc64le,linux/s390x" - cache-from: type=local,src=/tmp/.buildx-cache/ubuntu + cache-from: type=local,src=/tmp/.buildx-cache/ubuntu,mode=max,compression=estargz cache-to: type=local,dest=/tmp/.buildx-cache-new/ubuntu build-args: | - BASE_IMAGE=ubuntu:impish + BASE_IMAGE=ubuntu:jammy - name: Move cache run: |