Browse Source

save

master
zhipeng.hu 1 year ago
parent
commit
a457139bae
  1. 27
      .drone.yml

27
.drone.yml

@ -22,18 +22,27 @@ steps:
when:
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:
# target: ["test", "pre"]
- name: rancher-deploy
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:12 # 直接用busybox
settings:

Loading…
Cancel
Save