use cache by default
This commit is contained in:
@@ -70,9 +70,9 @@ on:
|
||||
type: string
|
||||
default: "true"
|
||||
cache:
|
||||
description: Keep the layer cache in Harbor as <image>:buildcache, "true" or "false".
|
||||
description: Keep the layer cache in Harbor as <image>:buildcache, "true" (default) or "false".
|
||||
type: string
|
||||
default: "false"
|
||||
default: "true"
|
||||
secrets:
|
||||
registry-username:
|
||||
required: false
|
||||
|
||||
@@ -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 `<image>:buildcache` (default `"false"`).
|
||||
- `cache`: `"true"` (default) or `"false"`. Keeps the layer cache in Harbor as
|
||||
`<image>: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
|
||||
|
||||
Reference in New Issue
Block a user