tagging-with-environment-variables

command
v1.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

Example: using the envTemplate tag policy

This example reuses the image name and 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: "{{.IMAGE_NAME}}:{{.FOO}}"
  1. define tagPolicy to be envTemplate
  2. use go templates syntax
  3. The IMAGE_NAME variable is built-in and reuses the value defined in the artifacts' image.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL