docstranslation: include mail configuration
This commit is contained in:
parent
b91a56c21f
commit
a36cb952a2
3 changed files with 37 additions and 7 deletions
|
@ -52,6 +52,15 @@
|
||||||
tags:
|
tags:
|
||||||
- deploy-secrets
|
- deploy-secrets
|
||||||
|
|
||||||
|
- name: Define configMap
|
||||||
|
include_role:
|
||||||
|
name: openshift/object
|
||||||
|
vars:
|
||||||
|
objectname: configmap.yml
|
||||||
|
template: configmap.yml
|
||||||
|
tags:
|
||||||
|
- deploy-config
|
||||||
|
|
||||||
- name: Define cron job
|
- name: Define cron job
|
||||||
include_role:
|
include_role:
|
||||||
name: openshift/object
|
name: openshift/object
|
||||||
|
|
17
roles/openshift-apps/docstranslation/templates/configmap.yml
Normal file
17
roles/openshift-apps/docstranslation/templates/configmap.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: mail-config
|
||||||
|
labels:
|
||||||
|
app: {{ app }}
|
||||||
|
data:
|
||||||
|
config.ini: |
|
||||||
|
[mail]
|
||||||
|
relayHost=bastion.fedoraproject.org
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
subjectPrefix=[docstranslation staging]
|
||||||
|
recipient=darknao
|
||||||
|
{% else %}
|
||||||
|
subjectPrefix=[docstranslation]
|
||||||
|
recipient=jibecfed
|
||||||
|
{% endif %}
|
|
@ -15,25 +15,29 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: translate
|
- name: translate
|
||||||
image: docker-registry.default.svc:5000/docstranslation/builder:latest
|
image: docker-registry.default.svc:5000/docstranslation/builder:latest
|
||||||
command:
|
args:
|
||||||
- /workspace/build.py
|
|
||||||
- "--clone_sources"
|
- "--clone_sources"
|
||||||
- "true"
|
|
||||||
{# Both environment get commit disabled for safety reasons for now
|
|
||||||
TODO: Set these to true on production when old app is removed from sundries #}
|
|
||||||
- "--commit_l10n"
|
- "--commit_l10n"
|
||||||
- "{% if env == 'staging' %}false{% else %}false{% endif %}"
|
|
||||||
- "--commit_tsources"
|
- "--commit_tsources"
|
||||||
- "{% if env == 'staging' %}false{% else %}false{% endif %}"
|
{% if env == 'staging' %}
|
||||||
|
- "--nopush"
|
||||||
|
{% endif %}
|
||||||
- "--clone-po4a"
|
- "--clone-po4a"
|
||||||
env: []
|
env: []
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: ssh-config-volume
|
- name: ssh-config-volume
|
||||||
mountPath: /workspace/.ssh
|
mountPath: /workspace/.ssh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: mail-config-volume
|
||||||
|
mountPath: /workspace/config.ini
|
||||||
|
subPath: config.ini
|
||||||
|
readOnly: true
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
startingDeadlineSeconds: 600
|
startingDeadlineSeconds: 600
|
||||||
volumes:
|
volumes:
|
||||||
- name: ssh-config-volume
|
- name: ssh-config-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: ssh-config
|
secretName: ssh-config
|
||||||
|
- name: mail-config-volume
|
||||||
|
configMap:
|
||||||
|
name: mail-config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue