Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for adding webhook to Discord #108

Open
Luis729 opened this issue Mar 4, 2020 · 0 comments
Open

Add docs for adding webhook to Discord #108

Luis729 opened this issue Mar 4, 2020 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@Luis729
Copy link
Member

Luis729 commented Mar 4, 2020

Could be put under Contributing for now, but is a pointer for all NGCP (if it moves to Discord)

Step 1: Add this file to your repo https://github.com/NGCP/GCS/blob/48541a72262c0eff039ff975f979e317db59b2a2/script/webhook.sh

Step 2: (requires Lead+ role) Add webhook in Discord that points to channel to post build status in master branch

ex:
image

Step 3: add webhook url as environment variable as WEBHOOK_URL. Go to https://travis-ci.com/NGCP then click on your repo then More Options > Settings > Environment Variables

image

Step 4: add the following scripts to .travis.yml

# replace path/to/webhook.sh to actual filepath
after_success:
  - chmod +x path/to/webhook.sh
  - ./path/to/webhook.sh success
after_failure:
  - chmod +x path/to/webhook.sh
  - ./path/to/webhook.sh failure
@Luis729 Luis729 added the documentation Improvements or additions to documentation label Mar 4, 2020
@Luis729 Luis729 self-assigned this Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant