This repository has been archived on 2020-08-01. You can view files and clone it, but cannot push or open issues/pull-requests.
amber_web/.drone.yml

36 lines
580 B
YAML

kind: pipeline
name: Build & lint
steps:
- name: lint & test
image: node:10-alpine
environment:
CI: true
commands:
- node -v
- yarn install
- yarn lint
- yarn test
when:
event:
- push
branch:
exclude:
- master
- name: deploy to registry
image: plugins/docker
settings:
username:
from_secret: username
password:
from_secret: password
repo: registry.git.tdem.in/amber_web
registry: registry.git.tdem.in
dockerfile: Dockerfile
tags:
- ${DRONE_TAG}
- latest
when:
event:
- tag