49 lines
656 B
YAML
49 lines
656 B
YAML
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 |