mirror of
https://github.com/docker/metadata-action.git
synced 2024-12-22 16:25:36 +00:00
Fine tune default branch example
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
2cad85de24
commit
535a299de5
|
@ -610,7 +610,7 @@ is not `master`, use `type=raw` with a boolean expression:
|
|||
|
||||
```yaml
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||
```
|
||||
|
||||
### Global expressions
|
||||
|
|
Loading…
Reference in a new issue