Tags¶
Tags are defined globally, as a list of objects under the tags
key.
Each tag has 2 required fields: name
and value
.
These 2 fields are always interpreted as strings. You can also use template values in both fields.
Tip
If either the name
or the value
evaluates to an empty string, then that tag will not be added. You can use this to condition your tags.
Example Tag Declaration
tags:
- name: cloud87/billable
value: true
- name: cloud87/application
value: "{{ .Project }}"
- name: "cloud87/{{.Project}}/tag"
value: "{{ .ImageTag }}"
Fields¶
name
- (required)-
The name or key for the tag. You may use template clauses in this field.
value
- (required)-
The value for the tag. You may use template clauses in this field.