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.
cs-2022-class-profile/.drone.yml

70 lines
1.3 KiB

---
kind: pipeline
type: docker
name: node16
steps:
12 months ago
- name: view-staging-url
12 months ago
image: node:16
commands:
12 months ago
- echo "staging url will be https://${DRONE_BRANCH//\//-}-csc-class-profile-staging-snedadah.k8s.csclub.cloud"
12 months ago
- 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
12 months ago
depends_on:
- export
settings:
username:
from_secret: HARBOUR_USERNAME
password:
from_secret: HARBOUR_PASSWORD
12 months ago
tags:
12 months ago
- ${DRONE_BRANCH//\//-}
12 months ago
- latest
12 months ago
registry: registry.cloud.csclub.uwaterloo.ca
12 months ago
repo: registry.cloud.csclub.uwaterloo.ca/snedadah/csc-class-profile-staging
12 months ago
- name: deploy
12 months ago
image: node:16
12 months ago
depends_on:
- publish
12 months ago
environment:
12 months ago
STAGING_AUTH_TOKEN:
12 months ago
from_secret: STAGING_AUTH_TOKEN
12 months ago
commands:
12 months ago
- echo "The docker build tag is ${DRONE_BRANCH//\//-}"
12 months ago
- 'curl -H "Authorization: $STAGING_AUTH_TOKEN" https://csclub.uwaterloo.ca/~snedadah/webhooks/cscclassprofilestaging?ref=${DRONE_BRANCH//\//-}'
trigger:
event:
exclude:
- pull_request #avoid double build on PRs