network-tools/.drone.yml

76 lines
1.5 KiB
YAML
Raw Normal View History

2020-06-06 17:05:16 +00:00
kind: pipeline
type: docker
name: build-image-x86_64
steps:
- name: build-image-latest
image: docker.io/volkerraschek/build-image:latest
commands:
- make container-image/build
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
- name: push-image-latest
image: docker.io/volkerraschek/build-image:latest
commands:
- make container-image/push
environment:
CONTAINER_IMAGE_REGISTRY_PASSWORD:
from_secret: container_image_registry_password
2020-06-06 17:05:16 +00:00
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
- name: delete-image-latest
2020-06-06 17:05:16 +00:00
image: docker.io/volkerraschek/build-image:latest
commands:
- make container-image/delete
2020-06-06 17:05:16 +00:00
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
2021-01-09 12:03:00 +00:00
- name: push-readme
image: docker.io/volkerraschek/build-image:latest
commands:
- make push/README
environment:
CONTAINER_IMAGE_REGISTRY_PASSWORD:
from_secret: container_image_registry_password
volumes:
- name: docker_socket
path: /var/run/docker.sock
when:
branch:
- master
2021-01-07 20:28:29 +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 17:05:16 +00:00
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock