mirror/.drone.yml

38 lines
640 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 12:30:46 +05:00
privileged: true
2022-06-27 00:08:44 +05:00
environment:
REGISTRY: code.pztrn.name
REGISTRY_PROJECT: /containers/mirror
2022-06-28 20:15:13 +05:00
REGISTRY_USERNAME: drone
2022-06-27 00:10:40 +05:00
REGISTRY_PASSWORD:
2022-06-27 00:08:44 +05:00
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