Skip to content

Commit

Permalink
Fix: Fix deploymen of TLS certificates, script exec and Ubuntu build
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed May 29, 2021
1 parent 3b37f91 commit 13bdabe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jobs:
env:
DOCKER_USERNAME: 'boky'
DOCKER_PASSWORD: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
PLATFORMS: "linux/386,linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
PLATFORMS: "linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
run: ./build.sh -t boky/postfix:ubuntu-latest --build-arg=BASE_IMAGE=ubuntu:focal --push
2 changes: 1 addition & 1 deletion .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
env:
DOCKER_USERNAME: 'boky'
DOCKER_PASSWORD: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
PLATFORMS: "linux/386,linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
PLATFORMS: "linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
run: ./build.sh -t boky/postfix:ubuntu-$RELEASE_VERSION --build-arg=BASE_IMAGE=ubuntu:focal --push
- name: Copy `README.md` and `LICENCE` into the helm chart
id: readme_and_licence
Expand Down
2 changes: 2 additions & 0 deletions helm/mail/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ data:
{{- end }}
{{- if .Values.certs.create }}
_enable_tls.sh: |
#!/usr/bin/env bash
set -e
do_postconf -e 'smtp_use_tls=yes'
do_postconf -e 'smtp_tls_note_starttls_offer=yes'
do_postconf -e 'smtpd_tls_cert_file=/var/run/certs/tls.crt'
Expand Down
5 changes: 3 additions & 2 deletions helm/mail/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ spec:
emptyDir: {}
{{- if .Values.certs.create }}
- name: certs-init
secret:
configMapName: {{ $fullName }}
configMap:
name: {{ $fullName }}
defaultMode: 0755
- name: certs
secret:
secretName: {{ $fullName }}-certs
Expand Down
4 changes: 2 additions & 2 deletions helm/mail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ persistence:


readinessProbe:
initialDelaySeconds: 30
initialDelaySeconds: 10
periodSeconds: 60
failureThreshold: 2
failureThreshold: 6
exec:
command:
- sh
Expand Down
1 change: 1 addition & 0 deletions scripts/common-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ execute_post_init_scripts() {
. "$f"
else
echo -e "\trunning ${emphasis}bash $f${reset}"
bash "$f"
fi
;;
*)
Expand Down

0 comments on commit 13bdabe

Please sign in to comment.