mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-23 02:20:39 +00:00
66 lines
801 B
Plaintext
66 lines
801 B
Plaintext
|
---
|
||
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
platform:
|
||
|
os: linux
|
||
|
arch: arm64
|
||
|
variant: 7
|
||
|
version: 1803
|
||
|
|
||
|
clone:
|
||
|
depth: 50
|
||
|
disable: true
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go get
|
||
|
- go build
|
||
|
|
||
|
- name: test
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go test -v
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- master
|
||
|
- develop
|
||
|
status:
|
||
|
- success
|
||
|
|
||
|
depends_on:
|
||
|
- foo
|
||
|
- bar
|
||
|
|
||
|
---
|
||
|
kind: registry
|
||
|
data:
|
||
|
index.docker.io: N2NmYjA3ODQwNTY1ODFlY2E5MGJmOWI1NDk0NDFhMTEK
|
||
|
|
||
|
---
|
||
|
kind: secret
|
||
|
type: general
|
||
|
data:
|
||
|
password: >
|
||
|
YjgwNDc4ZDY4NmQzNzQzYjNkYmUwYmE3YjMwOTM2OWUK
|
||
|
username: >
|
||
|
N2NmYjA3ODQwNTY1ODFlY2E5MGJmOWI1NDk0NDFhMTEK
|
||
|
|
||
|
---
|
||
|
kind: cron
|
||
|
name: nightly
|
||
|
spec:
|
||
|
schedule: "1 * * * *"
|
||
|
branch: master
|
||
|
deployment:
|
||
|
target: production
|
||
|
|
||
|
---
|
||
|
kind: signature
|
||
|
hmac: N2NmYjA3ODQwNTY1ODFlY2E5MGJmOWI1NDk0NDFhMTEK
|
||
|
|
||
|
...
|