--- 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: "plugins/docker" pull: if-not-exists environment: REGISTRY_USER: drone REGISTRY_PASSWORD: from_secret: drone_secret commands: - apk add --no-cache bash - ./mirror.sh