go-toolbox/.drone.yml
Stanislav N. aka pztrn 8b945c8f90
All checks were successful
continuous-integration/drone Build is passing
Initial commit.
2024-05-04 13:18:37 +05:00

38 lines
686 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 build.sh
---
kind: pipeline
type: docker
name: "build toolbox"
trigger:
event: ["tag"]
depends_on:
- "lint"
steps:
- name: "build toolbox"
image: "code.pztrn.name/containers/mirror/docker:26.1.1-dind"
pull: if-not-exists
privileged: true
environment:
REGISTRY: code.pztrn.name
REGISTRY_PROJECT: /containers/go-toolbox
REGISTRY_USERNAME: drone
REGISTRY_PASSWORD:
from_secret: drone_secret
commands:
- apk add --no-cache bash
- ./build.sh