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:
|
2021-01-08 15:53:49 +00:00
|
|
|
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
|
|
|
|
|
2021-01-08 15:53:49 +00:00
|
|
|
- name: delete-image-latest
|
2020-06-06 17:05:16 +00:00
|
|
|
image: docker.io/volkerraschek/build-image:latest
|
|
|
|
commands:
|
2021-01-08 15:53:49 +00:00
|
|
|
- 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
|