Categorygithub.com/GoogleContainerTools/skaffoldintegrationexamplestagging-with-environment-variables
# README
Example: using the envTemplate tag policy
This example uses an environment variable FOO
to tag the image.
The way you configure it in skaffold.yaml
is the following build stanza:
build:
artifacts:
- image: skaffold-example
tagPolicy:
envTemplate:
template: "{{.FOO}}"
- define
tagPolicy
to beenvTemplate
- use go templates syntax