mirror of
https://gitea.com/docker/metadata-action.git
synced 2024-11-25 21:49:33 +01:00
docs: workflow_dispatch example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
8ed470c7f1
commit
5ebec4fd21
1 changed files with 17 additions and 14 deletions
|
@ -53,6 +53,7 @@ ___
|
||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
@ -93,12 +94,13 @@ jobs:
|
||||||
```
|
```
|
||||||
|
|
||||||
| Event | Ref | Docker Tags |
|
| Event | Ref | Docker Tags |
|
||||||
|-----------------|-------------------------------|-------------------------------------|
|
|---------------------|-------------------------------|----------------------------|
|
||||||
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
||||||
| `push` | `refs/heads/master` | `master` |
|
| `push` | `refs/heads/master` | `master` |
|
||||||
| `push` | `refs/heads/releases/v1` | `releases-v1` |
|
| `push` | `refs/heads/releases/v1` | `releases-v1` |
|
||||||
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3`, `latest` |
|
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3`, `latest` |
|
||||||
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67`, `latest` |
|
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67`, `latest` |
|
||||||
|
| `workflow_dispatch` | `refs/heads/master` | `master` |
|
||||||
|
|
||||||
### Semver
|
### Semver
|
||||||
|
|
||||||
|
@ -563,12 +565,13 @@ This type handles Git ref (or reference) for the following events:
|
||||||
* `pr` ; eg. `refs/pull/318/merge`
|
* `pr` ; eg. `refs/pull/318/merge`
|
||||||
|
|
||||||
| Event | Ref | Output |
|
| Event | Ref | Output |
|
||||||
|-----------------|-------------------------------|-------------------------------|
|
|---------------------|-------------------------------|------------------|
|
||||||
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
|
||||||
| `push` | `refs/heads/master` | `master` |
|
| `push` | `refs/heads/master` | `master` |
|
||||||
| `push` | `refs/heads/my/branch` | `my-branch` |
|
| `push` | `refs/heads/my/branch` | `my-branch` |
|
||||||
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
|
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
|
||||||
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67` |
|
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67` |
|
||||||
|
| `workflow_dispatch` | `refs/heads/master` | `master` |
|
||||||
|
|
||||||
Extended attributes and default values:
|
Extended attributes and default values:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue