This commit is contained in:
parent
adbce93902
commit
1aef03bea8
23
.drone.yml
23
.drone.yml
@ -22,25 +22,26 @@ trigger:
|
||||
branch: ["main"]
|
||||
|
||||
steps:
|
||||
- name: "docker"
|
||||
image: "docker:20.10.17-dind"
|
||||
pull: if-not-exists
|
||||
detach: true
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_HOST: tcp://0.0.0.0:2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
commands:
|
||||
- /usr/local/bin/dockerd-entrypoint.sh dockerd
|
||||
# - name: "docker"
|
||||
# image: "docker:20.10.17-dind"
|
||||
# pull: if-not-exists
|
||||
# detach: true
|
||||
# privileged: true
|
||||
# environment:
|
||||
# DOCKER_HOST: tcp://0.0.0.0:2375
|
||||
# DOCKER_TLS_CERTDIR: ""
|
||||
# commands:
|
||||
# - /usr/local/bin/dockerd-entrypoint.sh dockerd
|
||||
|
||||
- name: "mirror"
|
||||
image: "docker:20.10.17-dind"
|
||||
pull: if-not-exists
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
#DOCKER_HOST: tcp://docker:2375
|
||||
REGISTRY_USER: drone
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: drone_secret
|
||||
commands:
|
||||
- /usr/local/bin/dockerd-entrypoint.sh dockerd
|
||||
- apk add --no-cache bash
|
||||
- ./mirror.sh
|
||||
|
Loading…
Reference in New Issue
Block a user