test/.drone.yml
admin 95326547f1
All checks were successful
continuous-integration/drone/push Build is passing
更新 .drone.yml
2025-03-28 10:16:41 +00:00

37 lines
664 B
YAML

kind: pipeline
type: docker
name: pipeline-1
steps:
- name: build
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/gcr.io/iguazio/alpine:3.17
working_dir: /drone/src/test
commands:
- echo ${DRONE_WORKSPACE}
- pwd && ls -l ${DRONE_WORKSPACE}
node:
app: build
---
kind: pipeline
type: docker
name: pipeline-2
depends_on:
- pipeline-1
clone:
disable: true
steps:
- name: deploy
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/gcr.io/iguazio/alpine:3.17
commands:
- echo "===== Drone 相关变量 ====="
- env | grep DRONE_
- echo "===== 路径变量 ====="
- env | grep PATH
node:
app: mvn