mirror/.drone.yml

35 lines
538 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: "lint"
steps:
- name: lint
2022-06-26 23:56:24 +05:00
image: koalaman/shellcheck-alpine:v0.8.0
pull: if-not-exists
commands:
2022-06-26 23:54:52 +05:00
- /bin/shellcheck mirror.sh
---
kind: pipeline
type: docker
name: "mirror"
depends_on:
- "lint"
trigger:
branch: ["main"]
steps:
- name: "mirror"
image: "docker:20.10.17-dind"
pull: if-not-exists
2022-06-27 00:08:44 +05:00
environment:
2022-06-27 00:10:08 +05:00
REGISTRY_USER: drone
2022-06-27 00:08:44 +05:00
REGISTRY_SECRET:
from_secret: drone_secret
commands:
2022-06-27 00:03:18 +05:00
- apk add --no-cache bash
2022-06-27 00:10:08 +05:00
- ./mirror.sh