forked from buildlyio/buildly-angular-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
54 lines (49 loc) · 1.01 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
---
pipeline:
install:
image: node:9.9.0
commands:
- npm install gulp-cli -g
- npm install
- npm run init
secrets: []
when:
event: [push, tag]
build:
image: node:9.9.0
commands:
- npm run build-prod
when:
event: [push, tag]
status: [success]
# test:
# image: registry.walhall.io/humanitec/docker-nodejs-and-chrome:0.0.1-8.12.0-latest
# commands:
# - npm rebuild node-sass
# - npm run test
# when:
# event: [push]
# status: [success]
build-docker-image-tag:
image: plugins/docker
registry:
from_secret: DOCKER_REGISTRY
repo:
from_secret: DOCKER_REPO
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
auto_tag: true
insecure: true
file: Dockerfile
when:
event: [tag]
status: [success]
notify:
image: plugins/slack
channel: drone-ci
username: Drone-CI
secrets: [SLACK_WEBHOOK]
when:
status: [failure]