Compare commits

...

2 Commits

Author SHA1 Message Date
Dora Su d477989fc3 Merge branch 'main' into feat/get-involved-page
continuous-integration/drone/push Build is passing Details
2021-07-04 00:50:06 -04:00
Aditya Thakral 5fad324b30 Add drone.yml (#77)
continuous-integration/drone/push Build is passing Details
Removes gitlab ci and adds .drone.yml

Still need to setup autodepoly for staging websites, but that's for later.

Co-authored-by: Aditya Thakral <aditya.thakral@uwaterloo.ca>
Reviewed-on: #77
Reviewed-by: n3parikh <n3parikh@localhost>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-06-29 15:08:05 -04:00
2 changed files with 36 additions and 49 deletions

36
.drone.yml Normal file
View File

@ -0,0 +1,36 @@
---
kind: pipeline
type: docker
name: node14
steps:
- name: install-deps
image: node:14
commands:
- npm install
- name: lint
image: node:14
depends_on:
- install-deps
commands:
- npm run lint
- name: build
image: node:14
depends_on:
- install-deps
commands:
- npm run build
- name: export
image: node:14
depends_on:
- build
commands:
- npm run export
trigger:
event:
exclude:
- pull_request #avoid double build on PRs

View File

@ -1,49 +0,0 @@
default:
image: node:14
cache:
paths:
- node_modules/
- .next
stages:
- build
- staging
variables:
NEXT_PUBLIC_BASE_PATH: '/~a3thakra/csc'
install_deps:
stage: .pre
script:
- npm install
lint:
stage: build
script:
- npm run lint
build:
stage: build
script:
- npm run build
staging:
stage: staging
script:
- npm run export
artifacts:
paths:
- out
only:
refs:
- main
deploy_staging:
stage: .post
needs: ["staging"]
script:
- 'curl -XPOST -H "Authorization: Basic $STAGING_SECRET" "https://csclub.uwaterloo.ca/~a3thakra/csc/"'
only:
refs:
- main