Merge pull request #165 from felipecrs/patch-1

Fine tune default branch example
This commit is contained in:
CrazyMax 2022-02-16 18:27:37 +01:00 committed by GitHub
commit f3c886e26b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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