Stanislav N. aka pztrn
3e2cacbc30
Some checks failed
continuous-integration/drone/push Build is failing
39 lines
679 B
YAML
39 lines
679 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: "mirror"
|
|
image: "docker:20.10.17-dind"
|
|
pull: if-not-exists
|
|
privileged: true
|
|
environment:
|
|
REGISTRY: code.pztrn.name
|
|
REGISTRY_PROJECT: /containers/mirror
|
|
REGISTRY_USERNAME: drone
|
|
REGISTRY_PASSWORD:
|
|
from_secret: drone_secret
|
|
DOCKER_MAX_CONCURRENT_UPLOADS: 1
|
|
commands:
|
|
- apk add --no-cache bash
|
|
- ./mirror.sh
|