2022-06-26 23:53:26 +05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: "lint"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
2022-06-26 23:56:24 +05:00
|
|
|
image: koalaman/shellcheck-alpine:v0.8.0
|
2022-06-26 23:53:26 +05:00
|
|
|
pull: if-not-exists
|
|
|
|
commands:
|
2022-06-26 23:54:52 +05:00
|
|
|
- /bin/shellcheck mirror.sh
|
2022-06-26 23:53:26 +05:00
|
|
|
|
|
|
|
---
|
|
|
|
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
|
|
|
|
commands:
|
2022-06-27 00:03:18 +05:00
|
|
|
- apk add --no-cache bash
|
2022-06-26 23:53:26 +05:00
|
|
|
- ./mirror.sh drone ${drone_secret}
|