This commit is contained in:
37
.drone.yml
Normal file
37
.drone.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user