2021-12-06 10:15:28 +01:00
|
|
|
name: Build Docker
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
steps:
|
2021-12-16 15:04:31 +01:00
|
|
|
|
|
|
|
- name: Extract Tags
|
|
|
|
image: alpine
|
|
|
|
commands:
|
2021-12-16 15:34:26 +01:00
|
|
|
- cat Dockerfile | grep FROM | sed -r 's/FROM .*:(.*).*/\1,slim/' > .tags
|
2021-12-16 15:04:31 +01:00
|
|
|
|
2021-12-06 10:15:28 +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/renovate
|
|
|
|
registry: harbor.sebclem.fr
|
2021-12-16 15:04:31 +01:00
|
|
|
|
2022-02-01 11:25:07 +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-16 15:04:31 +01:00
|
|
|
|
2021-12-06 10:15:28 +01:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2021-12-06 10:32:26 +01:00
|
|
|
- cron
|
2021-12-06 12:54:04 +01:00
|
|
|
- custom
|
2021-12-16 15:06:13 +01:00
|
|
|
branch:
|
|
|
|
- master
|
2021-12-06 10:15:28 +01:00
|
|
|
|