-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.drone.yml
42 lines (40 loc) · 861 Bytes
/
.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
kind: pipeline
type: docker
name: build dev
steps:
- name: build for staging
image: plugins/docker
settings:
dockerfile: Dockerfile
registry: hub.fsisp.de
repo: hub.fsisp.de/library/iassure-wx
username:
from_secret: reg_username
password:
from_secret: reg_password
tags:
- dev
- '${DRONE_COMMIT:0:8}'
when:
branch:
- dev
- develop
event:
- push
- name: build for production
image: plugins/docker
settings:
dockerfile: Dockerfile
registry: hub.fsisp.de
repo: hub.fsisp.de/library/iassure-wx
username:
from_secret: reg_username
password:
from_secret: reg_password
tags:
- latest
- '${DRONE_TAG}'
- '${DRONE_COMMIT:0:8}'
when:
event:
- tag