|
@ -22,18 +22,27 @@ steps: |
|
|
when: |
|
|
when: |
|
|
target: [ "test","pre" ] |
|
|
target: [ "test","pre" ] |
|
|
|
|
|
|
|
|
# - name: docker-push |
|
|
|
|
|
# image: plugins/docker |
|
|
|
|
|
# settings: |
|
|
|
|
|
# username: tjqmhu |
|
|
|
|
|
# password: tjqm4912 |
|
|
|
|
|
# repo: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone |
|
|
|
|
|
# dockerfile: Dockerfile |
|
|
|
|
|
# registry: https://registry.cn-hangzhou.aliyuncs.com |
|
|
|
|
|
# tags: ${DRONE_BUILD_NUMBER} |
|
|
|
|
|
|
|
|
- name: docker-push |
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
settings: |
|
|
|
|
|
username: tjqmhu |
|
|
|
|
|
password: tjqm4912 |
|
|
|
|
|
repo: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone |
|
|
|
|
|
dockerfile: Dockerfile |
|
|
|
|
|
registry: https://registry.cn-hangzhou.aliyuncs.com |
|
|
|
|
|
tags: ${DRONE_BUILD_NUMBER} |
|
|
|
|
|
# when: |
|
|
|
|
|
# target: [ "test","pre"] |
|
|
|
|
|
|
|
|
|
|
|
- name: docker-save |
|
|
|
|
|
image: docker |
|
|
|
|
|
commands: |
|
|
|
|
|
- docker save -o ${DRONE_BUILD_NUMBER}.tar . |
|
|
|
|
|
# - docker push registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone/${DRONE_BUILD_NUMBER} |
|
|
# when: |
|
|
# when: |
|
|
# target: ["test", "pre"] |
|
|
# target: ["test", "pre"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: rancher-deploy |
|
|
- name: rancher-deploy |
|
|
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:12 # 直接用busybox |
|
|
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:12 # 直接用busybox |
|
|
settings: |
|
|
settings: |
|
|