add no reply prototype (not working), CI tag support
This commit is contained in:
parent
c9547542c9
commit
429dc2789f
52
.drone.yml
52
.drone.yml
@ -2,20 +2,6 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build image only
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: eumau/postfix
|
|
||||||
auto_tag: true
|
|
||||||
dry_run: true
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/pull/**
|
|
||||||
# event no anda (?)
|
|
||||||
# event:
|
|
||||||
# - pull_request
|
|
||||||
|
|
||||||
- name: build and publish image
|
- name: build and publish image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@ -28,3 +14,41 @@ steps:
|
|||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build image only
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: eumau/postfix
|
||||||
|
auto_tag: true
|
||||||
|
dry_run: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: tags
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: eumau/postfix
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_username
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
tags:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
build_args:
|
||||||
|
- DEBIAN_VERSION=${DRONE_TAG}
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
7
confd/conf.d/noreply.toml.disabled
Normal file
7
confd/conf.d/noreply.toml.disabled
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[template]
|
||||||
|
src = "noreply.tmpl"
|
||||||
|
dest = "/etc/postfix/noreply"
|
||||||
|
keys = [
|
||||||
|
"/noreply/aliases",
|
||||||
|
"/virtual/mailbox/domains",
|
||||||
|
]
|
10
confd/templates/noreply.tmpl
Normal file
10
confd/templates/noreply.tmpl
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# "no-reply" mail aliases.
|
||||||
|
# DO NOT edit this file, it will be overwritten.
|
||||||
|
# Instead, set the variable NOREPLY_ALIASES
|
||||||
|
{{ range split (getv "/noreply/aliases") " " }}
|
||||||
|
{{ if (strings.Contains . "@") }}
|
||||||
|
{{.}} _dev_null
|
||||||
|
{{ else }}
|
||||||
|
{{.}}@{{ index (split (getv "/virtual/mailbox/domains") " ") 0 }} _dev_null
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user