Computer Science Club of the University of Waterloo's website.
https://csclub.uwaterloo.ca
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
848 B
53 lines
848 B
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: node16
|
|
|
|
steps:
|
|
- name: check-lockfile
|
|
image: node:16
|
|
commands:
|
|
- node ./check-lockfile.js
|
|
|
|
- name: install-deps
|
|
image: node:16
|
|
depends_on:
|
|
- check-lockfile
|
|
commands:
|
|
- npm install
|
|
|
|
- name: lint
|
|
image: node:16
|
|
depends_on:
|
|
- install-deps
|
|
commands:
|
|
- npm run lint
|
|
|
|
- name: build
|
|
image: node:16
|
|
depends_on:
|
|
- install-deps
|
|
commands:
|
|
- npm run build
|
|
|
|
- name: export
|
|
image: node:16
|
|
depends_on:
|
|
- build
|
|
commands:
|
|
- npm run export
|
|
|
|
- name: deploy (staging)
|
|
image: node:16
|
|
depends_on:
|
|
- export
|
|
environment:
|
|
TOKEN:
|
|
from_secret: STAGING_TOKEN
|
|
commands:
|
|
- 'curl -XPOST -H "Authorization: $TOKEN" -H "X-Branch: $DRONE_BRANCH" "https://csclub.uwaterloo.ca/~a3thakra/update-csc/"'
|
|
|
|
trigger:
|
|
event:
|
|
exclude:
|
|
- pull_request #avoid double build on PRs |