hetzner-storagebox-exporter/.drone.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

2023-03-23 23:51:53 +00:00
---
kind: pipeline
type: docker
name: build and publish
trigger:
2023-03-24 00:06:17 +00:00
branch:
- master
2023-03-23 23:51:53 +00:00
event:
include:
- push
2023-03-24 00:01:17 +00:00
2023-03-24 00:06:17 +00:00
steps:
- name: docker build and publish
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
---
kind: pipeline
type: docker
name: monthly build and publish
trigger:
event:
- cron
cron:
include:
- monthly
2023-03-23 23:51:53 +00:00
steps:
2023-03-24 00:06:17 +00:00
- name: docker build and publish
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:
- monthly