Update drone to use docker image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
06d6e767dc
commit
bf78b2cac4
22
.drone.yml
22
.drone.yml
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: docker
|
||||||
name: dnscontrol
|
name: dnscontrol
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /dns
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: preview
|
- name: preview
|
||||||
|
image: stackexchange/dnscontrol
|
||||||
environment:
|
environment:
|
||||||
PDNS_API_KEY:
|
PDNS_API_KEY:
|
||||||
from_secret: PDNS_API_KEY
|
from_secret: PDNS_API_KEY
|
||||||
@ -15,6 +19,7 @@ steps:
|
|||||||
- dnscontrol preview
|
- dnscontrol preview
|
||||||
|
|
||||||
- name: push
|
- name: push
|
||||||
|
image: stackexchange/dnscontrol
|
||||||
environment:
|
environment:
|
||||||
PDNS_API_KEY:
|
PDNS_API_KEY:
|
||||||
from_secret: PDNS_API_KEY
|
from_secret: PDNS_API_KEY
|
||||||
@ -24,3 +29,18 @@ steps:
|
|||||||
- dnscontrol push
|
- dnscontrol push
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: PDNS_API_KEY
|
||||||
|
get:
|
||||||
|
path: burble.dn42/kv/data/drone/dns
|
||||||
|
name: PDNS_API_KEY
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: CLOUDFLARE_API_KEY
|
||||||
|
get:
|
||||||
|
path: burble.dn42/kv/data/drone/dns
|
||||||
|
name: CLOUDFLARE_API_KEY
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user