2023-09-12 09:26:11 +08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2023-09-12 09:41:15 +08:00
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/github.com/octocat/hello-world
|
|
|
|
|
2023-09-12 09:26:11 +08:00
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: alpine
|
2023-09-12 09:41:15 +08:00
|
|
|
# volumes:
|
|
|
|
# - name: cache
|
|
|
|
# path: /go
|
2023-09-12 09:26:11 +08:00
|
|
|
commands:
|
|
|
|
- ls /
|
2024-04-18 16:27:07 +08:00
|
|
|
- echo "吃饭了吗?" > /go/a.txt
|
2023-09-12 09:27:45 +08:00
|
|
|
|
2023-09-12 09:26:11 +08:00
|
|
|
- name: build
|
2023-09-12 09:41:15 +08:00
|
|
|
image: alpine/git
|
2023-09-12 09:42:29 +08:00
|
|
|
# volumes:
|
|
|
|
# - name: cache
|
|
|
|
# path: /go
|
2023-09-12 09:26:11 +08:00
|
|
|
commands:
|
|
|
|
- ls /
|
2023-09-12 09:29:27 +08:00
|
|
|
- cat /go/a.txt
|
2023-09-12 09:26:11 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|
|
|
|
|