cnc-speed-calculator/.drone.yml

57 lines
1.1 KiB
YAML
Raw Normal View History

2021-12-06 16:54:38 +01:00
name: Build Docker
kind: pipeline
type: docker
steps:
2021-12-13 14:58:43 +01:00
- name: Only build image
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: harbor.sebclem.fr/sebclem/cnc-speed-calculator
registry: harbor.sebclem.fr
tags: latest
2021-12-13 15:21:41 +01:00
dry_run: true
2021-12-13 15:00:06 +01:00
when:
2021-12-13 15:21:41 +01:00
target:
2021-12-13 15:00:06 +01:00
exclude:
2021-12-13 15:21:41 +01:00
- production
2021-12-13 14:58:43 +01:00
2021-12-06 16:54:38 +01:00
- name: Build and Push docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: harbor.sebclem.fr/sebclem/cnc-speed-calculator
registry: harbor.sebclem.fr
tags: latest
2021-12-13 14:58:43 +01:00
when:
branch:
2021-12-13 15:02:26 +01:00
- main
2021-12-13 15:21:41 +01:00
target:
- production
2021-12-13 15:31:10 +01:00
2022-02-01 11:27:26 +01:00
- name: Notify
image: drillster/drone-email
settings:
host:
from_secret: mail_host
username:
from_secret: mail_username
password:
from_secret: mail_password
from:
from_secret: mail_from
when:
status: [ changed, failure ]
2021-12-13 15:31:10 +01:00
trigger:
event:
- push
- custom
- promote
- rollback