added .drone.yml with staging deployement

shahanneda/ci-test
Shahan Nedadahandeh 10 months ago
parent 591b885ae2
commit a8a2283dfd
Signed by: snedadah
GPG Key ID: 8638C7F917385B01
  1. 45
      .drone.yml
  2. 2
      Dockerfile

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

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