added .drone.yml with staging deployement
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Shahan Nedadahandeh 2022-06-06 19:14:16 -07:00
parent 591b885ae2
commit a8a2283dfd
Signed by: snedadah
GPG Key ID: 8638C7F917385B01
2 changed files with 47 additions and 0 deletions

45
.drone.yml Normal file
View File

@ -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

2
Dockerfile Normal file
View File

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