Browse Source

docker

master
zhipeng.hu 1 year ago
parent
commit
dd1f0e30a4
  1. 44
      .drone.yml

44
.drone.yml

@ -36,30 +36,30 @@ steps:
target: [ "test","pre" ]
- name: rancher-push
privileged: true
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:55 # 直接用busybox
settings:
# docker_img : registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER}
tar : test-drone-${DRONE_BUILD_NUMBER}.tar
commands:
- podman ps
- docker login --username=tjqmhu -p "tjqm4912" registry.cn-hangzhou.aliyuncs.com
- docker pull registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER}
- docker save registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} >test-drone-${DRONE_BUILD_NUMBER}.tar
when:
target: [ "test","pre" ]
# - name: rancher-deploy
# - name: rancher-push
# privileged: true
# image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:53 # 直接用busybox
# image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:55 # 直接用busybox
# settings:
# docker_img: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER}
## username: docker-push
## password: WeWlh6hGYCtxO4r
## registry: https://repository.241210.com
# username: tjqmhu
# password: tjqm4912
# registry: https://registry.cn-hangzhou.aliyuncs.com
## docker_img : registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER}
# tar : test-drone-${DRONE_BUILD_NUMBER}.tar
# commands:
# - podman ps
# - docker login --username=tjqmhu -p "tjqm4912" registry.cn-hangzhou.aliyuncs.com
# - docker pull registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER}
# - docker save registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} >test-drone-${DRONE_BUILD_NUMBER}.tar
# when:
# target: [ "test","pre" ]
- name: rancher-deploy
privileged: true
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:56 # 直接用busybox
settings:
docker_img: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER}
# username: docker-push
# password: WeWlh6hGYCtxO4r
# registry: https://repository.241210.com
username: tjqmhu
password: tjqm4912
registry: https://registry.cn-hangzhou.aliyuncs.com
when:
target: [ "test","pre" ]
Loading…
Cancel
Save