From 741442ba9a19f5f5ff167fccc7497983199de1ed Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 22 Jun 2024 11:04:57 +0800 Subject: [PATCH] ci: enhance Docker workflow with ARM64 support and caching - Add support for `linux/arm64` platform in Docker workflow - Enable build cache from and to registry in Docker workflow Signed-off-by: appleboy --- .gitea/workflows/docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index b1a8979..62c5e00 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -90,10 +90,12 @@ jobs: ACTIONS_RUNTIME_TOKEN: "" with: context: . - platforms: linux/amd64 + platforms: linux/amd64, linux/arm64 file: docker/Dockerfile push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.docker-meta.outputs.tags }} labels: ${{ steps.docker-meta.outputs.labels }} provenance: false sbom: false + cache-from: type=registry,ref=gitea/example-go:buildcache + cache-to: type=registry,ref=gitea/example-go:buildcache,mode=max