Use cache for docker build
authorPablo Zmdl <redacted>
Tue, 10 Jun 2025 08:35:42 +0000 (10:35 +0200)
committerPablo Zmdl <redacted>
Tue, 10 Jun 2025 08:35:57 +0000 (10:35 +0200)
.github/workflows/build-1.5.yml
.github/workflows/build-and-publish-nightly.yml
.github/workflows/build.yml

index 1a8d72837cbc2baae4f5edb453bcbbc55f005186..e8140c09921b5fbf5e4b385b3961145bc83cfc2b 100644 (file)
@@ -65,6 +65,8 @@ jobs:
           push: false
           load: true
           tags: ${{ matrix.docker-tag }}
+          cache-from: type=gha
+          cache-to: type=gha,mode=max
 
       - name: Run tests
         env:
index db696907c444e57000faae6f284b99fc875dd351..f40b98a54099a1e830bb4237d2f06784e272a710 100644 (file)
@@ -39,6 +39,8 @@ jobs:
           platforms: "linux/arm64,linux/arm/v6,linux/arm/v7,linux/386,linux/amd64,"
           push: true
           tags: roundcube/roundcubemail:nightly
+          cache-from: type=gha
+          cache-to: type=gha,mode=max
           # does not work linux/arm/v5 AND linux/mips64le - composer does not support  mips64le or armv5 nor does the php image support them on the alpine variant
 
       - name: Run tests
index 7e2698b2e721ad7572e1c495d262abdf369f5636..c9da3070504deef7014eaf9167d43de159964742 100644 (file)
@@ -92,6 +92,8 @@ jobs:
           push: true
           tags: ${{ matrix.docker-tag }}
           target: ${{ matrix.target }}
+          cache-from: type=gha
+          cache-to: type=gha,mode=max
           # does not work linux/arm/v5 AND linux/mips64le - composer does not support  mips64le or armv5 nor does the php image support them on the alpine variant
 
       - name: Run tests
git clone https://git.99rst.org/PROJECT