Added auth

test-ci-2
Shahan Nedadahandeh 6 months ago
parent 5fb3b90031
commit 0af1cbc614
Signed by: snedadah
GPG Key ID: 8638C7F917385B01
  1. 5
      .drone.yml
  2. 4
      docs/CI.md

@ -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//\//-}'

@ -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/)
Loading…
Cancel
Save