-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
53 lines (51 loc) · 1.4 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
kind: pipeline
name: default
steps:
- name: fetch-lfs
image: alpine
commands:
- apk add git-lfs
- git-lfs install
- git-lfs pull
- name: audit
image: alpine
environment:
NPM_AUDIT_TO_ISSUE:
from_secret: NPM_AUDIT_TO_ISSUE
commands:
- apk add nodejs npm
- npm config set unsafe-perm true
- npm install --global npm-audit-to-issue
- npm-audit-to-issue
- name: build
image: alpine
commands:
- apk add git nodejs npm
- npm ci
- npm run build
- name: docker-experimental
image: plugins/docker
settings:
dockerfile: Dockerfile-drone
registry: docker-registry.koppadb.com
force_tag: true
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: docker-registry.koppadb.com/koppadb/db-frontend
- name: docker-auto-tag
image: plugins/docker
settings:
auto_tag: true
force_tag: true
dockerfile: Dockerfile-drone
registry: docker-registry.koppadb.com
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: docker-registry.koppadb.com/koppadb/db-frontend
trigger:
branch:
- master