Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of tags in the build section #255

Merged
merged 4 commits into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions build.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,17 @@ Service builds MAY be granted access to multiple secrets. Long and short syntax
same Compose file. Defining a secret in the top-level `secrets` MUST NOT imply granting any service build access to it.
Such grant must be explicit within service specification as [secrets](spec.md#secrets) service element.

### tags

`tags` defines a list of tag mappings that MUST be associated to the build image. This list come in addition of
glours marked this conversation as resolved.
Show resolved Hide resolved
the `image` [property defined in the service section](spec.md#image)

```yml
tags:
EricHripko marked this conversation as resolved.
Show resolved Hide resolved
- "myimage:mytag"
- "registry/username/myrepos:my-other-tag"
```

## Implementations

* [docker-compose](https://docs.docker.com/compose)
Expand Down
3 changes: 2 additions & 1 deletion schema/compose-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
"shm_size": {"type": ["integer", "string"]},
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},
"isolation": {"type": "string"},
"secrets": {"$ref": "#/definitions/service_config_or_secret"}
"secrets": {"$ref": "#/definitions/service_config_or_secret"},
"tags":{"type": "array", "items": {"type": "string"}}
},
"additionalProperties": false,
"patternProperties": {"^x-": {}}
Expand Down