Pass volumes to each step

This commit is contained in:
Paul Reeves 2023-05-15 11:22:51 +02:00
parent b0f06c1082
commit 7999210d0d

View File

@ -16,7 +16,7 @@ steps:
- name: build
<<: *anchor_compiler_image
volumes:
- name: tempx
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
@ -28,6 +28,11 @@ steps:
- name: build-fail
<<: *anchor_compiler_image
volumes:
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
commands:
- echo "Go do some debugging - you've got $${SLEEP} seconds"
- sleep $${SLEEP}
@ -40,6 +45,11 @@ steps:
- name: build-success
<<: *anchor_compiler_image
volumes:
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
commands:
# - echo "Go check where the binaries are - you've got $${SLEEP} seconds"
# - sleep $${SLEEP}
@ -50,6 +60,11 @@ steps:
- name: build-install
<<: *anchor_compiler_image
volumes:
- name: temp
path: /tmp
- name: cache
path: /tmp/cache
commands:
- make install
depends_on: