From 48fdebee6a5b552f7e152d62d8ba99383ac7eb8d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Jun 2019 16:59:11 -0300 Subject: Encrypt attached log --- scripts/ci/mail.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/ci') 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" -- cgit v1.2.3