Files
kubernetes/dev/tekton/examples/workspaces/task.yaml
2025-11-23 18:58:51 +01:00

19 lines
510 B
YAML
Executable File

spec:
steps:
- name: write-message
image: ubuntu
script: |
#!/usr/bin/env bash
set -xe
if [ "$(workspaces.messages.bound)" == "true" ] ; then
echo hello! > $(workspaces.messages.path)/message
fi
workspaces:
- name: messages
description: |
The folder where we write the message to. If no workspace
is provided then the message will not be written.
optional: true
mountPath: /home/ubuntu/tekton