From e15f7896cb85e62ca3368b0f38c9dc2ad0ccd101 Mon Sep 17 00:00:00 2001 From: Philipp Traber Date: Mon, 19 Oct 2026 14:59:49 +0200 Subject: [PATCH] use cache by default --- .gitea/workflows/image.yaml | 4 ++-- README.md | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/image.yaml b/.gitea/workflows/image.yaml index 90ad66d..fbd6cc9 100644 --- a/.gitea/workflows/image.yaml +++ b/.gitea/workflows/image.yaml @@ -70,9 +70,9 @@ on: type: string default: "true" cache: - description: Keep the layer cache in Harbor as :buildcache, "true" or "false". + description: Keep the layer cache in Harbor as :buildcache, "true" (default) or "false". type: string - default: "false" + default: "true" secrets: registry-username: required: false diff --git a/README.md b/README.md index 0b3d199..9861d17 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,10 @@ Builds and pushes one image with a uniform tag set from - `platforms`: default `linux/amd64,linux/arm64`. QEMU is set up when an `arm` platform is listed. - `build-args`: newline-separated `KEY=value`. - `push`: `"true"` (default) or `"false"`. -- `cache`: `"true"` keeps the layer cache in Harbor as `:buildcache` (default `"false"`). +- `cache`: `"true"` (default) or `"false"`. Keeps the layer cache in Harbor as + `:buildcache`: every build reads it, only pushing builds write it. The tag lives next to + the image, so a Harbor tag retention rule on the project has to keep it (e.g. exclude + `buildcache`). `push` and `cache` are strings, not booleans: on Gitea 1.27 with gitea/runner v2.0.1 every boolean input of a called workflow arrives as `false`. An expression like