forked from fpfis/httpd-php-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
32 lines (30 loc) · 768 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
pipeline:
# Build and push tags :
build-and-push:
image: plugins/docker
repo: fpfis/httpd-php-dev
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
tags:
- ${DRONE_TAG}
- ${DRONE_TAG%%-*}
- ${DRONE_BRANCH##*/}
when:
event: tag
# Build and push dev release
build-and-push-branch:
image: plugins/docker
repo: fpfis/httpd-php-dev
tags: ${DRONE_BRANCH##*/}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
when:
event: push
branch: release/*
# Mark production
build-and-push-production:
image: plugins/docker
repo: fpfis/httpd-php-dev
tags: production-${DRONE_BRANCH##*/}
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
when:
event: push
branch: production/*