Skip to content

Commit

Permalink
Merge pull request #255 from glours/add-tags-to-build-section
Browse files Browse the repository at this point in the history
Add support of tags in the build section
  • Loading branch information
glours committed May 13, 2022
2 parents 54bf07e + 2cad342 commit b9b1222
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
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 comes in addition of
the `image` [property defined in the service section](spec.md#image)

```yml
tags:
- "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

0 comments on commit b9b1222

Please sign in to comment.