Compare commits
2 commits
266aded5ab
...
adff3b9820
Author | SHA1 | Date | |
---|---|---|---|
adff3b9820 | |||
0aa68719bc |
1 changed files with 30 additions and 2 deletions
32
.drone.yml
32
.drone.yml
|
@ -29,10 +29,38 @@ name: build and publish
|
|||
|
||||
trigger:
|
||||
event:
|
||||
- cron
|
||||
- promote
|
||||
target:
|
||||
- production
|
||||
|
||||
steps:
|
||||
- name: docker build
|
||||
image: plugins/docker
|
||||
environment:
|
||||
REVISION: ${DRONE_COMMIT_SHA}
|
||||
CREATED: ${DRONE_BUILD_CREATED}
|
||||
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
||||
settings:
|
||||
purge: true
|
||||
username:
|
||||
from_secret: dockerhub_user
|
||||
password:
|
||||
from_secret: dockerhub_key
|
||||
repo: varakh/hetzner-storagebox-exporter
|
||||
tags:
|
||||
- latest
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: monhtly build and publish
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- cron
|
||||
cron:
|
||||
include:
|
||||
- monthly
|
||||
|
@ -53,6 +81,7 @@ steps:
|
|||
repo: varakh/hetzner-storagebox-exporter
|
||||
tags:
|
||||
- latest
|
||||
- monthly
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
@ -78,5 +107,4 @@ steps:
|
|||
from_secret: mail_from
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
|
Loading…
Reference in a new issue