CI: Use GitHub actions cache in docker builds

This commit is contained in:
Fijxu 2025-05-14 01:03:32 -04:00
parent 81ca831439
commit 343e3fb259
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4
3 changed files with 10 additions and 0 deletions

View File

@ -60,6 +60,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
build-args: |
"release=1"
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Docker meta
id: meta-arm64
@ -85,3 +87,5 @@ jobs:
tags: ${{ steps.meta-arm64.outputs.tags }}
build-args: |
"release=1"
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@ -53,6 +53,8 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
build-args: |
"release=1"
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Docker meta
id: meta-arm64
@ -79,3 +81,5 @@ jobs:
tags: ${{ steps.meta-arm64.outputs.tags }}
build-args: |
"release=1"
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@ -119,6 +119,8 @@ jobs:
file: docker/Dockerfile.arm64
platforms: linux/arm64/v8
build-args: release=0
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Test Docker
run: while curl -Isf http://localhost:3000; do sleep 1; done