mirror of
https://github.com/docker/metadata-action.git
synced 2024-12-22 23:05:31 +00:00
Merge pull request #165 from felipecrs/patch-1
Fine tune default branch example
This commit is contained in:
commit
f3c886e26b
|
@ -610,7 +610,7 @@ is not `master`, use `type=raw` with a boolean expression:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
tags: |
|
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
|
### Global expressions
|
||||||
|
|
Loading…
Reference in a new issue