Compare commits

...

21 Commits

Author SHA1 Message Date
Shahan Nedadahandeh 7effab06af
fixed lint 6 months ago
Shahan Nedadahandeh 93f054aa4c
ci test 6 months ago
Shahan Nedadahandeh 0d9dc49167
rebuild test 6 months ago
Shahan Nedadahandeh d20c28f35a
rebuild test 6 months ago
Shahan Nedadahandeh 09d71776b4
Changed ref 6 months ago
Shahan Nedadahandeh f73aa6ca95
test 6 months ago
Shahan Nedadahandeh 213c8f5756
Chagned ref 6 months ago
Shahan Nedadahandeh ca221a2282
changed ref 6 months ago
Shahan Nedadahandeh 62db9d8ad0
test 6 months ago
Shahan Nedadahandeh 36961ad6e6
test 6 months ago
Shahan Nedadahandeh 787aecba1c
reran test 6 months ago
Shahan Nedadahandeh 0949f37142
Reran test 6 months ago
Shahan Nedadahandeh e9f35eaca5
fixed typo 6 months ago
Shahan Nedadahandeh ce345c8441
added webhook 6 months ago
Shahan Nedadahandeh 95dcbf4d7c
test 6 months ago
Shahan Nedadahandeh cd6673b1bf
test 6 months ago
Shahan Nedadahandeh 0f830efee0
Test 6 months ago
Shahan Nedadahandeh 6a9c4016c3
test 6 months ago
Shahan Nedadahandeh 30d9eed4a0
updated repo 6 months ago
Shahan Nedadahandeh 6939c73814
changed registry 6 months ago
Shahan Nedadahandeh a8a2283dfd
added .drone.yml with staging deployement 6 months ago
  1. 57
      .drone.yml
  2. 2
      Dockerfile
  3. 3
      pages/index.tsx

@ -0,0 +1,57 @@
---
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_BRANCH//\//-}
- 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:
- echo "The docker build tag is ${DRONE_BRANCH//\//-}"
- 'curl https://csclub.uwaterloo.ca/~snedadah/webhooks/cscclassprofilestaging?ref=${DRONE_BRANCH//\//-}'

@ -0,0 +1,2 @@
FROM nginx
COPY ./out /usr/share/nginx/html

@ -4,7 +4,8 @@ import React from "react";
export default function Home() {
return (
<p>
Click <Link href="/playground">here</Link> to visit the playground
Click <Link href="/playground">here</Link> to visit the playground 9 on ci
test
</p>
);
}

Loading…
Cancel
Save