hetzner-storagebox-exporter/.drone.yml
Varakh 0374883450
All checks were successful
continuous-integration/drone/push Build is passing
Separate monthly build from latest
2023-03-24 01:06:17 +01:00

57 lines
1.2 KiB
YAML

---
kind: pipeline
type: docker
name: build and publish
trigger:
branch:
- master
event:
include:
- push
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
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:
- monthly