Test variable interpolation in the YAML

This commit is contained in:
Diogo Galvão
2019-12-21 23:29:39 -03:00
committed by Muayyad alsadi
parent 080b8a369e
commit 2ad7daa81f
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
version: "3.7"
services:
variables:
image: busybox
command: ["/bin/busybox", "sh", "-c", "export | grep EXAMPLE"]
environment:
EXAMPLE_QUESTION_ERROR: ${NOT_A_VARIABLE?Missing variable}