hetzner-storagebox-exporter/.drone.yml

83 lines
1.6 KiB
YAML
Raw Normal View History

2023-03-23 23:51:53 +00:00
---
kind: pipeline
type: docker
2023-03-24 07:37:36 +00:00
name: test
2023-03-23 23:51:53 +00:00
trigger:
event:
include:
- push
2023-03-24 00:01:17 +00:00
2023-03-24 00:06:17 +00:00
steps:
2023-03-24 07:38:51 +00:00
- name: docker build
2023-03-24 00:06:17 +00:00
image: plugins/docker
environment:
REVISION: ${DRONE_COMMIT_SHA}
CREATED: ${DRONE_BUILD_CREATED}
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
settings:
2023-03-24 07:36:59 +00:00
dry_run: true
2023-03-24 00:06:17 +00:00
purge: true
repo: varakh/hetzner-storagebox-exporter
tags:
2023-03-24 07:36:59 +00:00
- ${DRONE_COMMIT_SHA}
2023-03-24 00:06:17 +00:00
---
kind: pipeline
type: docker
2023-03-24 07:36:59 +00:00
name: build and publish
2023-03-24 00:06:17 +00:00
trigger:
event:
- cron
2023-03-24 07:36:59 +00:00
- promote
target:
- production
2023-03-24 00:06:17 +00:00
cron:
include:
- monthly
2023-03-23 23:51:53 +00:00
steps:
2023-03-24 07:38:51 +00:00
- name: docker build
2023-03-24 00:06:17 +00:00
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:
2023-03-24 07:36:59 +00:00
- latest
when:
branch:
- master
---
kind: pipeline
type: docker
name: result
steps:
- name: notify
image: drillster/drone-email
settings:
subject: "Build failed"
body: "URL ${DRONE_BUILD_LINK}"
host:
from_secret: mail_host
username:
from_secret: mail_user
password:
from_secret: mail_password
from:
from_secret: mail_from
when:
status:
2023-03-24 07:39:14 +00:00
- success
2023-03-24 07:36:59 +00:00
- failure