Compare commits
6 commits
b52598d1f7
...
99947137cc
Author | SHA1 | Date | |
---|---|---|---|
|
99947137cc | ||
|
0e8b6ac71a | ||
|
fc1a12e592 | ||
|
248c527c58 | ||
|
056f73fc8f | ||
|
000ac53f39 |
2 changed files with 15 additions and 6 deletions
|
@ -12,18 +12,18 @@ steps:
|
||||||
- "ALPINE_VERSION=${ALPINE_VERSION}"
|
- "ALPINE_VERSION=${ALPINE_VERSION}"
|
||||||
- "POSTFIX_VERSION=${POSTFIX_VERSION}"
|
- "POSTFIX_VERSION=${POSTFIX_VERSION}"
|
||||||
- "BASE_IMAGE=gitea.nulo.in/sutty/monit"
|
- "BASE_IMAGE=gitea.nulo.in/sutty/monit"
|
||||||
secrets:
|
password:
|
||||||
- "DOCKER_PASSWORD"
|
from_secret: "DOCKER_PASSWORD"
|
||||||
when:
|
when:
|
||||||
branch: "antifascista"
|
branch: "antifascista"
|
||||||
event: "push"
|
event: "push"
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- ALPINE_VERSION: "3.20.1"
|
- ALPINE_VERSION: "3.20.3"
|
||||||
POSTFIX_VERSION: "3.9.0"
|
POSTFIX_VERSION: "3.9.0"
|
||||||
- ALPINE_VERSION: "3.19.2"
|
- ALPINE_VERSION: "3.19.4"
|
||||||
POSTFIX_VERSION: "3.8.6"
|
POSTFIX_VERSION: "3.8.6"
|
||||||
- ALPINE_VERSION: "3.18.7"
|
- ALPINE_VERSION: "3.18.9"
|
||||||
POSTFIX_VERSION: "3.8.6"
|
POSTFIX_VERSION: "3.8.6"
|
||||||
- ALPINE_VERSION: "3.17.8"
|
- ALPINE_VERSION: "3.17.10"
|
||||||
POSTFIX_VERSION: "3.7.11"
|
POSTFIX_VERSION: "3.7.11"
|
||||||
|
|
|
@ -22,6 +22,15 @@ case $1 in
|
||||||
|
|
||||||
test -n "${NETWORKS}" && postconf -e mynetworks="${NETWORKS}"
|
test -n "${NETWORKS}" && postconf -e mynetworks="${NETWORKS}"
|
||||||
|
|
||||||
|
if ! test -f /etc/monit.d/cert.conf ; then
|
||||||
|
cat >/etc/monit.d/cert.conf <<MONIT
|
||||||
|
check file certificate with path /etc/letsencrypt/live/${SUTTY}/fullchain.pem
|
||||||
|
if does not exist then alert
|
||||||
|
if changed checksum then exec "/usr/sbin/postfix reload"
|
||||||
|
MONIT
|
||||||
|
monit reload
|
||||||
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
stop) ;;
|
stop) ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue