grim/convey
Clone
Summary
Browse
Changes
Graph
Move the configurations environment into the runtime
2021-12-23, Gary Kramlich
2cf80db56edb
Move the configurations environment into the runtime
# This plan extends another plan by overwriting the pre and post
# stages of a plan defined in the parent config. This shows how
# to build "abstract" plans which can be extended in ways that
# allow blocks of plans to be replaced.
#
# It should output
#
# <= before
# YO one
# YO two
# => after
extends
:
base.yml
options
:
default-plan
:
plan3
tasks
:
before
:
type
:
docker/run
image
:
alpine:edge
command
:
echo "<= before"
after
:
type
:
docker/run
image
:
alpine:edge
command
:
echo "=> after"
plans
:
default
:
merge
:
true
stages
:
-
name
:
pre
tasks
:
-
before
-
name
:
post
tasks
:
-
after