# README

Example: using the envTemplate tag policy

Open in Cloud Shell

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}}"
  1. define tagPolicy to be envTemplate
  2. use go templates syntax