Merge pull request #528 from crazy-max/update-readme
Some checks failed
validate / prepare (push) Failing after 1s
validate / validate (push) Has been skipped
test / test (push) Failing after 2s
ci / multi-images (push) Failing after 1s
ci / context (git) (push) Successful in 6s
ci / tag-schedule (schedule) (push) Failing after 1s
ci / context (workflow) (push) Successful in 6s
ci / tag-schedule ({{date 'YYYYMMDD-HHmmss'}}) (push) Failing after 1s
ci / tag-match (v(.*), 1) (push) Failing after 1s
ci / tag-semver (auto) (push) Failing after 1s
ci / tag-schedule (cron-{{date 'YYYYMMDD'}}) (push) Successful in 8s
ci / tag-semver (false) (push) Failing after 1s
ci / tag-match (\d.\d.\d, 0) (push) Successful in 7s
ci / flavor (push) Failing after 1s
ci / custom-labels-annotations (push) Failing after 1s
ci / tag-semver (true) (push) Successful in 6s
ci / global-exps (push) Failing after 1s
ci / tag-schedule () (push) Successful in 18s
ci / images (push) Successful in 6s
ci / sep-tags ( ) (push) Failing after 1s
ci / bake (push) Failing after 3s
ci / sep-tags (,) (push) Failing after 3s
ci / output-env (push) Failing after 1s
ci / json (push) Successful in 7s
ci / no-images (push) Failing after 1s
ci / no-output-env (push) Successful in 5s
ci / bake-annotations (push) Failing after 3s
ci / sha-short () (push) Failing after 1s
ci / tag-match (\d.\d, 0) (push) Successful in 26s
ci / bake-path-context (push) Failing after 4s
ci / docker-push (push) Failing after 15s
ci / dump (push) Failing after 4s
ci / sha-short (16) (push) Successful in 44s

readme: show additional case for semver
This commit is contained in:
CrazyMax 2025-06-25 17:03:18 +02:00 committed by GitHub
commit be19121bfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,6 +283,7 @@ similar to the previous one:
The following inputs can be used as `step.with` keys:
> [!NOTE]
> `List` type is a newline-delimited string
> ```yaml
> labels: |
@ -508,18 +509,20 @@ with the following expressions:
* `minor` ; minor version identifier
* `patch` ; patch version identifier
| Git tag | Pattern | Output |
|--------------------|----------------------------------------------------------|----------------------|
| `v1.2.3` | `{{raw}}` | `v1.2.3` |
| `v1.2.3` | `{{version}}` | `1.2.3` |
| `v1.2.3` | `{{major}}.{{minor}}` | `1.2` |
| `v1.2.3` | `v{{major}}` | `v1` |
| `v1.2.3` | `{{minor}}` | `2` |
| `v1.2.3` | `{{patch}}` | `3` |
| `v2.0.8-beta.67` | `{{raw}}` | `v2.0.8-beta.67` |
| `v2.0.8-beta.67` | `{{version}}` | `2.0.8-beta.67` |
| `v2.0.8-beta.67` | `{{major}}.{{minor}}` | `2.0.8-beta.67`* |
| Git tag | Pattern | Output |
|--------------------|-----------------------|----------------------|
| `v1.2.3` | `{{raw}}` | `v1.2.3` |
| `v1.2.3` | `{{version}}` | `1.2.3` |
| `v1.2.3` | `{{major}}.{{minor}}` | `1.2` |
| `v1.2.3` | `v{{major}}` | `v1` |
| `v1.2.3` | `{{minor}}` | `2` |
| `v1.2.3` | `{{patch}}` | `3` |
| `v2.0.8-beta.67` | `{{raw}}` | `v2.0.8-beta.67` |
| `v2.0.8-beta.67` | `{{version}}` | `2.0.8-beta.67` |
| `v2.0.8-beta.67` | `{{major}}` | `2.0.8-beta.67`* |
| `v2.0.8-beta.67` | `{{major}}.{{minor}}` | `2.0.8-beta.67`* |
> [!IMPORTANT]
> *Pre-release (rc, beta, alpha) will only extend `{{version}}` (or `{{raw}}`
> if specified) as tag because they are updated frequently, and contain many
> breaking changes that are (by the author's design) not yet fit for public
@ -569,6 +572,7 @@ with the following expressions:
| `1.2.3beta2` | `{{major}}.{{minor}}` | `1.2.3b2`* |
| `1.0dev4` | `{{major}}.{{minor}}` | `1.0.dev4`* |
> [!IMPORTANT]
> *dev/pre/post release will only extend `{{version}}` (or `{{raw}}` if
> specified) as tag because they are updated frequently, and contain many
> breaking changes that are (by the author's design) not yet fit for public
@ -858,6 +862,7 @@ workflow run. Will be empty for a branch reference:
| `push` | `refs/heads/my/branch` | |
| `push tag`* | `refs/tags/v1.2.3` | `master` |
> [!IMPORTANT]
> *`base_ref` is available in the push payload but doesn't always seem to
> return the expected branch when the push tag event occurs. It's also
> [not documented in GitHub docs](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push).