-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
37 lines (34 loc) · 1.11 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
trigger_common: &trigger_common
image: plugins/downstream
fork: true
secrets: [ downstream_token, downstream_server ]
params:
- FORCED_OS_VERSION=centos6
pipeline:
docker:
image: metwork/drone-docker-specific-image:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root:/root
commands:
- if test "${DRONE_BRANCH}" = "master"; then docker build -t metwork/mfext-centos6-buildimage:master -t metwork/mfext-centos6-buildimage:latest .; else docker build -t metwork/mfext-centos6-buildimage:${DRONE_BRANCH} .; fi
- docker push metwork/mfext-centos6-buildimage:${DRONE_BRANCH}
- if test "${DRONE_BRANCH}" = "master"; then docker push metwork/mfext-centos6-buildimage:latest; fi
when:
event: push
trigger_integration:
<<: *trigger_common
repositories:
- metwork-framework/mfext@integration
when:
status: [ success ]
event: push
branch: integration
trigger_master:
<<: *trigger_common
repositories:
- metwork-framework/mfext@master
when:
status: [ success ]
event: push
branch: master