This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.drone.yml
121 lines (116 loc) · 2.85 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
matrix:
include:
- PHP_VERSION: 7.3
TARGET: httpd-php
- PHP_VERSION: 7.3
TARGET: httpd-php-ci
- PHP_VERSION: 7.3
TARGET: httpd-php-dev
- PHP_VERSION: 7.3
TARGET: httpd-php-full
- PHP_VERSION: 7.3
TARGET: httpd-php-oci
OCI8_VERSION: 2.2.0
- PHP_VERSION: 7.3
TARGET: httpd-php-oci-dev
OCI8_VERSION: 2.2.0
- PHP_VERSION: 7.2
TARGET: httpd-php
- PHP_VERSION: 7.2
TARGET: httpd-php-ci
- PHP_VERSION: 7.2
TARGET: httpd-php-dev
- PHP_VERSION: 7.2
TARGET: httpd-php-full
- PHP_VERSION: 7.2
TARGET: httpd-php-oci
OCI8_VERSION: 2.1.8
- PHP_VERSION: 7.2
TARGET: httpd-php-oci-dev
OCI8_VERSION: 2.1.8
- PHP_VERSION: 7.1
TARGET: httpd-php
- PHP_VERSION: 7.1
TARGET: httpd-php-ci
- PHP_VERSION: 7.1
TARGET: httpd-php-dev
- PHP_VERSION: 7.1
TARGET: httpd-php-full
- PHP_VERSION: 7.1
TARGET: httpd-php-oci
OCI8_VERSION: 2.1.8
- PHP_VERSION: 7.1
TARGET: httpd-php-oci-dev
OCI8_VERSION: 2.1.8
- PHP_VERSION: 5.6
TARGET: httpd-php
- PHP_VERSION: 5.6
TARGET: httpd-php-ci
- PHP_VERSION: 5.6
TARGET: httpd-php-dev
- PHP_VERSION: 5.6
TARGET: httpd-php-full
- PHP_VERSION: 5.6
TARGET: httpd-php-oci
OCI8_VERSION: 2.0.12
- PHP_VERSION: 5.6
TARGET: httpd-php-oci-dev
OCI8_VERSION: 2.0.12
pipeline:
# Build for test (dry-run)
build-for-test-branch:
image: plugins/docker
repo: fpfis/${TARGET}
tags: ${PHP_VERSION}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
target: ${TARGET}
dry_run: true
build_args:
- php_version=${PHP_VERSION}
- oci8_version=${OCI8_VERSION}
when:
event: pull_request
branch: develop
# Build and push release
build-and-push-branch:
image: plugins/docker
repo: fpfis/${TARGET}
tags: ${PHP_VERSION}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
target: ${TARGET}
build_args:
- php_version=${PHP_VERSION}
- oci8_version=${OCI8_VERSION}
when:
event: push
branch: develop
# Mark production
build-and-push-production:
image: plugins/docker
repo: fpfis/${TARGET}
tags: production-${PHP_VERSION}
target: ${TARGET}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
build_args:
- php_version=${PHP_VERSION}
- oci8_version=${OCI8_VERSION}
when:
event: push
branch: master
# Mark production
build-and-push-tag:
image: plugins/docker
repo: fpfis/${TARGET}
tags:
- ${PHP_VERSION}
- ${DRONE_TAG%-*}
- ${DRONE_TAG}
target: ${TARGET}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
build_args:
- php_version=${PHP_VERSION}
- oci8_version=${OCI8_VERSION}
when:
event: tag
matrix:
PHP_VERSION: ${DRONE_TAG%.*}