diff options
author | EuAndreh <eu@euandre.org> | 2019-06-10 16:59:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-10 16:59:11 -0300 |
commit | 48fdebee6a5b552f7e152d62d8ba99383ac7eb8d (patch) | |
tree | b6dc99d19a393d754cc9be881782726656bc1df1 /scripts | |
parent | Show in email subject if the run failed (diff) | |
download | server-48fdebee6a5b552f7e152d62d8ba99383ac7eb8d.tar.gz server-48fdebee6a5b552f7e152d62d8ba99383ac7eb8d.tar.xz |
Encrypt attached log
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/mail.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ci/mail.sh b/scripts/ci/mail.sh index 420c35f..8585cf1 100755 --- a/scripts/ci/mail.sh +++ b/scripts/ci/mail.sh @@ -35,6 +35,8 @@ EOF ) cat ./logs/*.txt > "${ATTACHMENT_PATH}" +gpg -r "${GPG_TO}" \ + -e "${ATTACHMENT_PATH}" curl "${MAILGUN_URL}" \ -s \ @@ -43,4 +45,4 @@ curl "${MAILGUN_URL}" \ -F to="${MAILGUN_TO}" \ -F subject="${SUBJECT}" \ -F text="${BODY}" \ - -F attachment="@${ATTACHMENT_PATH}" + -F attachment="@${ATTACHMENT_PATH}.gpg" |