How can I add multiple tags for the same image? #296
|
I'm treating this as a list, this is not the correct syntax: name: Build and push
uses: docker/bake-action@v2
with:
files: docker-compose.yml
push: true
load: false
pull: false
set: |
worker.tags=["ghcr.io/${{ env.OWNER_LC }}/neurovault:${{ hashFiles('**/neurovault/**') }}", "ghcr.io/${{ env.OWNER_LC }}/neurovault:${{ env.SANITIZED_BRANCH_NAME }}"]
worker.cache-from=type=registry,ref=ghcr.io/${{ env.OWNER_LC }}/neurovault:${{ hashFiles('**/neurovault/**') }}
worker.cache-from=type=gha,scope=cached-neurovault
worker.cache-to=type=gha,scope=cached-neurovault,mode=max
django.tags=["ghcr.io/${{ env.OWNER_LC }}/neurovault_fs:${{ hashFiles('**/neurovault/**') }}", "ghcr.io/${{ env.OWNER_LC }}/neurovault_fs:${{ env.SANITIZED_BRANCH_NAME }}"]
django.cache-from=type=registry,ref=ghcr.io/${{ env.OWNER_LC }}/neurovault_fs:${{ hashFiles('**/neurovault/**') }}
django.cache-from=type=gha,scope=cached-neurovault_fs
django.cache-to=type=gha,scope=cached-neurovault_fs,mode=maxDoes anyone know the correct syntax for specifying multiple tags? Thank you! |
Answered by
jcroney-cb
May 29, 2025
Replies: 1 comment 2 replies
Try something like that to add more than one tag to the images. You may need to replace the * with your image name. |
2 replies
Answer selected by
crazy-max
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try something like that to add more than one tag to the images. You may need to replace the * with your image name.