test/.drone.yml
admin 6328e3da5d
Some checks reported errors
continuous-integration/drone/push Build encountered an error
更新 .drone.yml
2025-05-08 09:31:03 +00:00

45 lines
839 B
YAML

kind: pipeline
type: docker
name: pipeline-1
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
commands:
- git clone -b main admin:P@ssw0rd!@115.190.73.171:3000/admin/test.git
- sleep 5m
- name: build
image: swr.cn-north-4.myhuaweicloud.com/ddn-k8s/gcr.io/iguazio/alpine:3.17
commands:
- cd $DRONE_WORKSPACE
- ls -la /drone/src/
- cat /drone/src/.drone.yml
- sleep 5m
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