Stanislav N. aka pztrn
8b945c8f90
All checks were successful
continuous-integration/drone Build is passing
38 lines
686 B
YAML
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
|