diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..1690891 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,45 @@ +--- +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 + settings: + username: + from_secret: harbour_username + password: + from_secret: harbour_password + tags: latest + repo: registry.cloud.csclub.uwaterloo.ca/snedadah/csc-class-profile + + + + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dfb0893 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx +COPY ./out /usr/share/nginx/html