Added auth
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Shahan Nedadahandeh 2022-06-13 22:15:49 -07:00
parent 5fb3b90031
commit 0af1cbc614
Signed by: snedadah
GPG Key ID: 8638C7F917385B01
2 changed files with 8 additions and 1 deletions

View File

@ -54,9 +54,12 @@ steps:
image: node:16
depends_on:
- publish
environment:
AUTH_TOKEN:
from_secret: STAGING_AUTH_TOKEN
commands:
- echo "The docker build tag is ${DRONE_BRANCH//\//-}"
- 'curl https://csclub.uwaterloo.ca/~snedadah/webhooks/cscclassprofilestaging?ref=${DRONE_BRANCH//\//-}'
- 'curl -H "Authorization: $AUTH_TOKEN" https://csclub.uwaterloo.ca/~snedadah/webhooks/cscclassprofilestaging?ref=${DRONE_BRANCH//\//-}'

4
docs/CI.md Normal file
View File

@ -0,0 +1,4 @@
## Setting up CI
- Follow instructions on [CSC cloud](https://docs.cloud.csclub.uwaterloo.ca/kubernetes/) to setup CI
- Setup the repository to store your docker images on [CSC Harbour](https://docs.cloud.csclub.uwaterloo.ca/registry/)