fix: quote command strings to avoid yaml colon ambiguity

This commit is contained in:
2026-09-18 20:15:02 +02:00
parent 91767279e6
commit 7fd48c3958
+7 -7
View File
@@ -2,13 +2,13 @@ steps:
- name: show-deployment-request
image: alpine:3.20
commands:
- echo "Deployment requested:"
- echo " ARTIFACT=$ARTIFACT"
- echo " TARGET=$TARGET"
- test -n "$ARTIFACT" || (echo "ERROR: ARTIFACT param missing" && exit 1)
- test -n "$TARGET" || (echo "ERROR: TARGET param missing" && exit 1)
- test -f "hosts/$TARGET" || (echo "ERROR: unknown host alias '$TARGET'" && exit 1)
- echo "Resolved host alias '$TARGET':"
- 'echo "Deployment requested:"'
- 'echo " ARTIFACT=$ARTIFACT"'
- 'echo " TARGET=$TARGET"'
- test -n "$ARTIFACT" || (echo "ERROR - ARTIFACT param missing" && exit 1)
- test -n "$TARGET" || (echo "ERROR - TARGET param missing" && exit 1)
- test -f "hosts/$TARGET" || (echo "ERROR - unknown host alias $TARGET" && exit 1)
- 'echo "Resolved host alias $TARGET:"'
- cat "hosts/$TARGET"
when: