mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
run pyinfra command with environment variables, without inventory.py
This commit is contained in:
11
deploy.py
11
deploy.py
@@ -2,4 +2,13 @@ import os
|
||||
from pyinfra import host, facts
|
||||
from chatmail import deploy_chatmail
|
||||
|
||||
deploy_chatmail()
|
||||
|
||||
def main():
|
||||
mail_domain = os.getenv("CHATMAIL_DOMAIN")
|
||||
mail_server = os.getenv("CHATMAIL_SERVER", mail_domain)
|
||||
dkim_selector = os.getenv("CHATMAIL_DKIM_SELECTOR", "2023")
|
||||
|
||||
deploy_chatmail(mail_domain, mail_server, dkim_selector)
|
||||
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user