Skip to content

How can I append tags with --set ? #631

Closed
@back-2-95

Description

@back-2-95

I have target like:

target "fpm-73" {
  ...
  tags = ["repo/php:7.3-fpm", "repo/php:7.3-fpm-latest"]
}

I'm getting Minor version outside of docker-bake.hcl, e.g. 7.3.27 so I'd like to append a tag to the target tags:

docker buildx bake --print --pull --push --set fpm-73.tags=repo/php:7.3.27

Now with that ^^ the tags list from hcl file gets overriden totally.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions