add drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-03-30 23:28:06 +00:00
parent f27d0b07db
commit 3e566f06df
2 changed files with 42 additions and 0 deletions

39
.drone.yml Normal file
View file

@ -0,0 +1,39 @@
kind: pipeline
name: default
steps:
- name: docker-postfix
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
context: postfix
dockerfile: postfix/Dockerfile
repo: r.sbruder.de/postfix
- name: docker-postgrey
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
context: postgrey
dockerfile: postgrey/Dockerfile
repo: r.sbruder.de/postgrey
- name: docker-dovecot
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
context: dovecot
dockerfile: dovecot/Dockerfile
repo: r.sbruder.de/dovecot

View file

@ -2,6 +2,7 @@ version: "3"
services:
postfix:
build: postfix
image: r.sbruder.de/postfix
restart: always
environment:
- MYHOSTNAME=mail.example.com
@ -28,12 +29,14 @@ services:
postgrey:
build: postgrey
image: r.sbruder.de/postgrey
restart: always
volumes:
- ./spool/postgrey:/var/spool/postfix/postgrey
dovecot:
build: dovecot
image: r.sbruder.de/dovecot
restart: always
environment:
- LDAP_SERVER=ldap.example.com