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