reduce drone interval check and add the additional email aliases inclusion

This commit is contained in:
viktorbarzin 2021-04-08 19:20:46 +01:00
parent 90a43e99f5
commit 12a3a33ba3
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 16 additions and 5 deletions

View file

@ -3,10 +3,12 @@ type: kubernetes
name: default
trigger:
event:
- cron
- push
cron:
- build-state-daily
include:
# - cron
- push
# target:
# include:
# - build-state-daily
steps:
- name: Prepare terraform files
@ -39,6 +41,10 @@ steps:
kind: pipeline
type: kubernetes
name: build-cli
trigger:
event:
include:
- push
steps:
- name: Build image

View file

@ -105,6 +105,10 @@ resource "kubernetes_deployment" "drone_server" {
name = "DRONE_USER_FILTER"
value = var.allowed_users
}
env {
name = "DRONE_CRON_INTERVAL"
value = "1m"
}
}
volume {

View file

@ -0,0 +1 @@
# Add aliases here. Example: 'test@viktorbarzin.me me@viktorbarzin.me' will point test@ -> me@

View file

@ -64,7 +64,7 @@ resource "kubernetes_config_map" "mailserver_config" {
# Actual mail settings
"postfix-accounts.cf" = local.postfix_accounts_cf
"postfix-main.cf" = var.postfix_cf
"postfix-virtual.cf" = var.postfix_account_aliases
"postfix-virtual.cf" = format("%s%s", var.postfix_account_aliases, file("${path.module}/extra/aliases.txt"))
KeyTable = "mail._domainkey.viktorbarzin.me viktorbarzin.me:mail:/etc/opendkim/keys/viktorbarzin.me-mail.key\n"
SigningTable = "*@viktorbarzin.me mail._domainkey.viktorbarzin.me\n"

Binary file not shown.