Compare commits

...

2 commits

Author SHA1 Message Date
adff3b9820 Separate monthly cron and explicit promote
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing
2023-03-24 08:43:02 +01:00
0aa68719bc Remove success mail sending 2023-03-24 08:41:23 +01:00

View file

@ -29,10 +29,38 @@ name: build and publish
trigger: trigger:
event: event:
- cron
- promote - promote
target: target:
- production - 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: cron:
include: include:
- monthly - monthly
@ -53,6 +81,7 @@ steps:
repo: varakh/hetzner-storagebox-exporter repo: varakh/hetzner-storagebox-exporter
tags: tags:
- latest - latest
- monthly
when: when:
branch: branch:
- master - master
@ -78,5 +107,4 @@ steps:
from_secret: mail_from from_secret: mail_from
when: when:
status: status:
- success
- failure - failure