mirror/.drone.yml
Stanislav N. aka pztrn 54025c8a51
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Trying to fix CI.
2022-06-27 00:27:19 +05:00

49 lines
816 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"]
services:
- name: docker
image: "docker:20.10.17-dind"
steps:
- name: "docker"
image: "docker:20.10.17-dind"
detach: true
privileged: true
- name: "mirror"
image: "docker:20.10.17"
pull: if-not-exists
environment:
DOCKER_HOST: tcp://docker:2375
DOCKER_TCP_PORT: 2375
DOCKER_TLS_CERTDIR: ""
REGISTRY_USER: drone
REGISTRY_PASSWORD:
from_secret: drone_secret
commands:
- apk add --no-cache bash
- ./mirror.sh
depends_on:
- "docker"