From: Paul Bonaud Date: Mon, 5 Oct 2020 16:17:18 +0000 (+0200) Subject: travis: Use encrypted token for slack notification X-Git-Tag: v2.9~1^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=refs%2Fpull%2F77%2Fhead;p=github%2Ffretlink%2Fansible-clever.git travis: Use encrypted token for slack notification This encrypts the token used to talk with Slack (with a new generated token and the old one has been revoked) Encrypted using the repository key with the `travis` CLI: ``` travis encrypt ":" --add notifications.slack.rooms ``` cf documentation https://docs.travis-ci.com/user/notifications/#configuring-slack-notifications About #66 --- diff --git a/.travis.yml b/.travis.yml index 4a7aa46..e42204f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ --- -sudo: false language: nix nix: 2.3.4 env: @@ -34,5 +33,10 @@ script: - ansible-playbook -i tests/inventory tests/test-all.yml notifications: - slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB + slack: + rooms: + - secure: PdkqC047GvDF8RB4TN5iT5WqffzhViUU1YZsGMdd0/mH2tylqe8VuaFvIHSNJlFxgUHvEktkRy6Jn6gpkHysKMrHDK99fvPB/v2m/88eze1pI1zsXlgdaHZ7GOgxx5iqG/o+F/3MA0jInwExzUmSpojkrdGqsxyr9G9/tktj3E8d2udQJbiNwaxhVGO3fsgqKK2bQLpuVEGjNVCfzp3DfsQ0lAn/75k2+cHdEIIBTBC/8cuZle+WULiL4+0/bxcpD/Dlo76IDOcyiyimCyC22EJSvdYq7JdMdNDBuG81hq0HyeOMqeYpGufiaksuw1T7AfzrgMkstKbUzyMJlt9Le6ezbTOQc3Xy06d9v0BiZRlT0sHF/QRZR906pfdLmWfFluPQYwsH6K+dJob+MD/2alJDBvlEpnyKDPyDChys1G+Xh+EWLClDREgrE7TNwWkfW1sTvILPoqdcIPfOJCnJvvs14sJseymhJ7X9puuvJt481LCCitBDLRtiB7Ht5c5KBQfvsyT1h0n4rVfIVxEAubM0mCng7Xc9yUICxM/udQE1ra0UAUHGUpIqv/S9lmmvic7c3PK0+0p8hBU/98Fv7M6KMS+SjDMrNSCglUd17RHsIl6lji7npzprcwF/SZjKQ8KfFjN00VWMEj/pUzpBOv5ihUZi1Il5lh5jynXtQao= + on_success: change # default: always + on_failure: always # default: always + on_pull_requests: false webhooks: https://galaxy.ansible.com/api/v1/notifications/