123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- kind: pipeline
- type: docker
- name: test
- steps:
- - name: build
- image: plugins/docker:20.14.2
- volumes:
- - name: hosts
- path: /etc/hosts
- - name: docker-ca
- path: /etc/docker
- - name: docker-sock
- path: /var/run/docker.sock
- settings:
- username:
- from_secret: aliyuncs_username
- password:
- from_secret: aliyuncs_password
- repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-system-web
- registry: registry.cn-hangzhou.aliyuncs.com
- tags: [test]
- - name: ssh commands
- image: appleboy/drone-ssh
- settings:
- host: 192.168.1.70
- username: tmrwatch
- password:
- from_secret: ssh_password
- port: 22
- script:
- - cd /data/docker-compose/kpt-system-web/
- - echo "123456" | ./restart.sh
- trigger:
- branch:
- include:
- - feature/*
- event:
- include:
- - push
- volumes:
- - name: docker-ca
- host:
- path: /etc/docker
- - name: docker-sock
- host:
- path: /var/run/docker.sock
- ---
- kind: pipeline
- type: docker
- name: product
- steps:
- - name: build
- image: plugins/docker:20.14.2
- volumes:
- - name: hosts
- path: /etc/hosts
- - name: docker-ca
- path: /etc/docker
- - name: docker-sock
- path: /var/run/docker.sock
- settings:
- username:
- from_secret: aliyuncs_username
- password:
- from_secret: aliyuncs_password
- repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-system-web
- registry: registry.cn-hangzhou.aliyuncs.com
- tag:
- - latest
- - ${DRONE_BRANCH##release/}
- trigger:
- branch:
- include:
- - release/*
- event:
- include:
- - push
- volumes:
- - name: docker-ca
- host:
- path: /etc/docker
- - name: docker-sock
- host:
- path: /var/run/docker.sock
- ---
- kind: pipeline
- type: docker
- name: hotfix
- steps:
- - name: build
- image: plugins/docker:20.14.2
- volumes:
- - name: hosts
- path: /etc/hosts
- - name: docker-ca
- path: /etc/docker
- - name: docker-sock
- path: /var/run/docker.sock
- settings:
- username:
- from_secret: aliyuncs_username
- password:
- from_secret: aliyuncs_password
- repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-system-web
- registry: registry.cn-hangzhou.aliyuncs.com
- tag:
- - latest
- trigger:
- branch:
- include:
- - hotfix/*
- event:
- include:
- - push
- volumes:
- - name: docker-ca
- host:
- path: /etc/docker
- - name: docker-sock
- host:
- path: /var/run/docker.sock
|