taskmanifest

command
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package taskmanifest implements manifest rendering for tasks. It is intended to be run via `go run`, passing a task YAML template and data to be rendered. The combined result will be written to the specified destination. The -data flag can be passed multiple times and may specify any key-value combination, which can then be consumed in the template through Go's text/template package. E.g. passing -data Foo=bar will replace {{.Foo}} in the template with bar.

Example invocation:

go run github.com/opendevstack/ods-pipeline/cmd/taskmanifest \
	-data ImageRepository=ghcr.io/my-org/my-repo \
	-data Version=latest \
	-template build/tasks/my-task.yaml \
	-destination tasks/my-task.yaml

Jump to

Keyboard shortcuts

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