Separate monthly build from latest
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ad49659312
commit
0374883450
1 changed files with 46 additions and 19 deletions
65
.drone.yml
65
.drone.yml
|
@ -4,27 +4,54 @@ type: docker
|
||||||
name: build and publish
|
name: build and publish
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
event:
|
event:
|
||||||
include:
|
include:
|
||||||
- push
|
- push
|
||||||
- cron
|
|
||||||
cron:
|
|
||||||
- monthly
|
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker build and publish
|
- name: docker build and publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
environment:
|
environment:
|
||||||
REVISION: ${DRONE_COMMIT_SHA}
|
REVISION: ${DRONE_COMMIT_SHA}
|
||||||
CREATED: ${DRONE_BUILD_CREATED}
|
CREATED: ${DRONE_BUILD_CREATED}
|
||||||
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
SOURCE_URL: ${DRONE_GIT_HTTP_URL}
|
||||||
settings:
|
settings:
|
||||||
purge: true
|
purge: true
|
||||||
username:
|
username:
|
||||||
from_secret: dockerhub_user
|
from_secret: dockerhub_user
|
||||||
password:
|
password:
|
||||||
from_secret: dockerhub_key
|
from_secret: dockerhub_key
|
||||||
repo: varakh/hetzner-storagebox-exporter
|
repo: varakh/hetzner-storagebox-exporter
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue