added mailer protocol
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/print Build is passing Details
continuous-integration/drone/promote/deploy Build is running Details

This commit is contained in:
giles 2023-10-02 17:31:14 +01:00
parent 65cc04609b
commit 52e30b186c
1 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,7 @@ steps:
- gitea_security_internal_token - gitea_security_internal_token
- gitea_oauth2_jwt_secret - gitea_oauth2_jwt_secret
- gitea_mailer_passwd - gitea_mailer_passwd
- gitea_mailer_protocol
script: script:
- rm -f env-gitea - rm -f env-gitea
- "echo \"export GITEA_MAILER_HOST='$${GITEA_MAILER_HOST}'\" >> env-gitea # \"gitea-mailer-host\"" - "echo \"export GITEA_MAILER_HOST='$${GITEA_MAILER_HOST}'\" >> env-gitea # \"gitea-mailer-host\""
@ -181,6 +182,7 @@ steps:
- "echo \"export GITEA_SECURITY_INTERNAL_TOKEN='$${GITEA_SECURITY_INTERNAL_TOKEN}'\" >> env-gitea # \"gitea-security-internal-token\"" - "echo \"export GITEA_SECURITY_INTERNAL_TOKEN='$${GITEA_SECURITY_INTERNAL_TOKEN}'\" >> env-gitea # \"gitea-security-internal-token\""
- "echo \"export GITEA_OAUTH2_JWT_SECRET='$${GITEA_OAUTH2_JWT_SECRET}'\" >> env-gitea # \"gitea-oauth2-jwt-secret\"" - "echo \"export GITEA_OAUTH2_JWT_SECRET='$${GITEA_OAUTH2_JWT_SECRET}'\" >> env-gitea # \"gitea-oauth2-jwt-secret\""
- "echo \"export GITEA_MAILER_PASSWD='$${GITEA_MAILER_PASSWD}'\" >> env-gitea # \"gitea-mailer-passwd\"" - "echo \"export GITEA_MAILER_PASSWD='$${GITEA_MAILER_PASSWD}'\" >> env-gitea # \"gitea-mailer-passwd\""
- "echo \"export GITEA_MAILER_PROTOCOL='$${GITEA_MAILER_PROTOCOL}'\" >> env-gitea # \"gitea-mailer-protocol\""
environment: environment:
GITEA_APP_NAME: GITEA_APP_NAME:
from_secret: gitea-app-name from_secret: gitea-app-name
@ -190,6 +192,8 @@ steps:
from_secret: gitea-mailer-host from_secret: gitea-mailer-host
GITEA_MAILER_PASSWD: GITEA_MAILER_PASSWD:
from_secret: gitea-mailer-passwd from_secret: gitea-mailer-passwd
GITEA_MAILER_PROTOCOL:
from_secret: gitea-mailer-protocol
GITEA_MAILER_USER: GITEA_MAILER_USER:
from_secret: gitea-mailer-user from_secret: gitea-mailer-user
GITEA_OAUTH2_JWT_SECRET: GITEA_OAUTH2_JWT_SECRET:
@ -299,12 +303,14 @@ steps:
- gitea_security_internal_token - gitea_security_internal_token
- gitea_oauth2_jwt_secret - gitea_oauth2_jwt_secret
- gitea_mailer_passwd - gitea_mailer_passwd
- gitea_mailer_protocol
script: script:
- export GITEA_SERVER_LFS_JWT_SECRET=$${GITEA_SERVER_LFS_JWT_SECRET} - export GITEA_SERVER_LFS_JWT_SECRET=$${GITEA_SERVER_LFS_JWT_SECRET}
- export GITEA_SECURITY_SECRET_KEY=$${GITEA_SECURITY_SECRET_KEY} - export GITEA_SECURITY_SECRET_KEY=$${GITEA_SECURITY_SECRET_KEY}
- export GITEA_SECURITY_INTERNAL_TOKEN=$${GITEA_SECURITY_INTERNAL_TOKEN} - export GITEA_SECURITY_INTERNAL_TOKEN=$${GITEA_SECURITY_INTERNAL_TOKEN}
- export GITEA_OAUTH2_JWT_SECRET=$${GITEA_OAUTH2_JWT_SECRET} - export GITEA_OAUTH2_JWT_SECRET=$${GITEA_OAUTH2_JWT_SECRET}
- export GITEA_MAILER_PASSWD=$${GITEA_MAILER_PASSWD} - export GITEA_MAILER_PASSWD=$${GITEA_MAILER_PASSWD}
- export GITEA_MAILER_PROTOCOL=$${GITEA_MAILER_PROTOCOL}
- export GITEA_MAILER_HOST=$${GITEA_MAILER_HOST} - export GITEA_MAILER_HOST=$${GITEA_MAILER_HOST}
- export GITEA_MAILER_FROM=$${GITEA_MAILER_FROM} - export GITEA_MAILER_FROM=$${GITEA_MAILER_FROM}
- export GITEA_MAILER_USER=$${GITEA_MAILER_USER} - export GITEA_MAILER_USER=$${GITEA_MAILER_USER}
@ -330,6 +336,8 @@ steps:
from_secret: gitea-mailer-host from_secret: gitea-mailer-host
GITEA_MAILER_PASSWD: GITEA_MAILER_PASSWD:
from_secret: gitea-mailer-passwd from_secret: gitea-mailer-passwd
GITEA_MAILER_PROTOCOL:
from_secret: gitea-mailer-protocol
GITEA_MAILER_USER: GITEA_MAILER_USER:
from_secret: gitea-mailer-user from_secret: gitea-mailer-user
GITEA_OAUTH2_JWT_SECRET: GITEA_OAUTH2_JWT_SECRET: