mirror/.drone.yml
Stanislav N. aka pztrn cf1aa3e65f
Some checks failed
continuous-integration/drone/push Build is failing
Trying to fix CI.
2022-06-27 01:26:14 +05:00

44 lines
804 B
YAML

---
kind: pipeline
type: docker
name: "lint"
steps:
- name: lint
image: koalaman/shellcheck-alpine:v0.8.0
pull: if-not-exists
commands:
- /bin/shellcheck mirror.sh
---
kind: pipeline
type: docker
name: "mirror"
depends_on:
- "lint"
trigger:
branch: ["main"]
steps:
- name: "docker"
image: "docker:20.10.17-dind"
pull: if-not-exists
detach: true
privileged: true
commands:
- /usr/local/bin/dockerd --data-root=/var/lib/docker --host=tcp://0.0.0.0:2375 --tls=false
- name: "mirror"
image: "docker:20.10.17-dind"
pull: if-not-exists
environment:
DOCKER_HOST: tcp://docker:2375
REGISTRY_USER: drone
REGISTRY_PASSWORD:
from_secret: drone_secret
commands:
- apk add --no-cache bash
- ./mirror.sh