-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
61 lines (60 loc) · 1.44 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
54
55
56
57
58
59
60
61
kind: pipeline
name: default
steps:
- name: install_dependencies
image: node:12
commands:
- npm ci
- name: test
image: node:12
commands:
- npm run test:coverage
- export COVERALLS_GIT_COMMIT=${DRONE_COMMIT_SHA}
- npm run test:coveralls
environment:
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
depends_on: [install_dependencies]
- name: generate changelog
image: node:12
commands:
- npx semantic-release
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
depends_on: [test]
when:
branch: master
event: push
- name: docker
image: banzaicloud/drone-kaniko
settings:
email: [email protected]
dockerfile: ./Dockerfile
registry: docker.pkg.github.com
repo: singebob/bot-projet-mspr/api
username:
from_secret: GITHUB_USERNAME
password:
from_secret: GITHUB_TOKEN
tags:
- ${DRONE_TAG}
- latest
depends_on: [test]
when:
event: tag
- name: deploy
image: node:12
commands:
- npm install -g caprover
- caprover deploy -h $DOMAIN -p $PASSWORD -a $APPNAME --imageName docker.pkg.github.com/singebob/bot-projet-mspr/api:latest
environment:
DOMAIN:
from_secret: DOMAIN
PASSWORD:
from_secret: PASSWORD
APPNAME:
from_secret: APPNAME
depends_on: [docker]
when:
event: tag