cs-2022-class-profile/.drone.yml

57 lines
946 B
YAML

---
kind: pipeline
type: docker
name: node16
steps:
- name: install-deps
image: node:16
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: publish
image: plugins/docker:latest
depends_on:
- export
settings:
username:
from_secret: harbour_username
password:
from_secret: harbour_password
tags:
- ${DRONE_COMMIT_REF}
- latest
registry: registry.cloud.csclub.uwaterloo.ca
repo: registry.cloud.csclub.uwaterloo.ca/snedadah/csc-class-profile-staging
- name: deploy
image: node:16
depends_on:
- publish
commands:
- 'curl https://csclub.uwaterloo.ca/~snedadah/webhooks/cscclassprofilestaging?ref=${DRONE_COMMIT_REF}'