mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-18 15:56:37 +00:00
Explain can't push tagged ref error
Signed-off-by: Jonathan Dahan <github@jonathan.is>
This commit is contained in:
parent
14487ce63c
commit
a9c9d5333d
@ -135,3 +135,11 @@ Or a dedicated step to sanitize the slug:
|
||||
push: true
|
||||
tags: ${{ steps.repo_slug.outputs.result }}:latest
|
||||
```
|
||||
|
||||
## can't push tagged ref docker.io/user/image:latest by digest
|
||||
|
||||
By tagged ref, it means the image tag :latest conflicts with the push-by-digest=true output option. So it's either push by tag or push by digest, and, if the latter, the tags input must then be a CSV of repo names only, like:
|
||||
|
||||
```yaml
|
||||
tags: docker.io/${{ github.repository }},ghcr.io/${{ github.repository }}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user