stages:
- name: hello
image: alpine:3.18
workdir: .:/home/node/
env:
FOO: "$HOME"
shell: sh
commands:
- echo "0.1.0" > build/version.txt
- echo "hello from build! ($FOO)" > file.txt
- cat file.txt
- exit 0 # On-purpose success for example
cached:
- /home/node/build/
- name: success
image: alpine:3.18
workdir: .:/home/node/
shell: sh
commands:
- exit 0 # On-purpose success for example
- name: failing
image: alpine:3.18
workdir: .:/home/node/
shell: sh
commands:
- exit 1 # On-purpose failure for example