build-image/.drone.yml

165 lines
2.8 KiB
YAML
Raw Normal View History

2021-08-31 20:39:00 +00:00
---
kind: pipeline
type: kubernetes
name: linter
platform:
os: linux
arch: amd64
steps:
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/tmknom/markdownlint:0.23.1
resources:
limits:
cpu: 50
memory: 50M
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
event:
exclude:
- tag
---
2020-06-06 15:24:05 +00:00
kind: pipeline
type: docker
2021-08-31 20:39:00 +00:00
name: build
platform:
os: linux
arch: amd64
2020-06-06 15:24:05 +00:00
steps:
2021-08-31 20:39:00 +00:00
- name: build
2020-06-06 15:24:05 +00:00
image: docker.io/volkerraschek/build-image:latest
commands:
2021-08-31 20:39:00 +00:00
- make container-image/build CONTAINER_RUNTIME=docker
2020-06-06 15:24:05 +00:00
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
2021-08-31 20:39:00 +00:00
- name: push
2020-06-06 15:24:05 +00:00
image: docker.io/volkerraschek/build-image:latest
commands:
2021-08-31 20:39:00 +00:00
- make container-image/push CONTAINER_RUNTIME=docker
2020-06-06 15:24:05 +00:00
environment:
2021-08-31 20:39:00 +00:00
BIND9_IMAGE_REGISTRY_PASSWORD:
from_secret: container_image_registry_password
2020-06-06 15:24:05 +00:00
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
2021-08-31 20:39:00 +00:00
repo:
- volker.raschek/build-image
2020-06-06 15:24:05 +00:00
2021-08-31 20:39:00 +00:00
- name: delete
2020-06-06 15:24:05 +00:00
image: docker.io/volkerraschek/build-image:latest
commands:
2021-08-31 20:39:00 +00:00
- make container-image/delete CONTAINER_RUNTIME=docker
2021-01-09 11:48:37 +00:00
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
2020-08-02 12:06:07 +00:00
- name: notify
image: drillster/drone-email
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
2020-06-06 15:24:05 +00:00
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
2021-08-31 20:39:00 +00:00
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: kubernetes
name: sync
platform:
os: linux
arch: amd64
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
memory: 25M
settings:
branch: master
remote: ssh://git@github.com/volker-raschek/build-image.git
force: true
ssh_key:
from_secret: ssh_key
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
event:
- push
repo:
- volker.raschek/build-image