Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Update .drone.yml #33

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
matrix:
include:
- PHP_VERSION: 7.4
TARGET: httpd-php
- PHP_VERSION: 7.4
TARGET: httpd-php-ci
- PHP_VERSION: 7.4
TARGET: httpd-php-dev
- PHP_VERSION: 7.4
TARGET: httpd-php-full
- PHP_VERSION: 7.4
TARGET: httpd-php-oci
OCI8_VERSION: 2.2.0
- PHP_VERSION: 7.3
TARGET: httpd-php
- PHP_VERSION: 7.3
Expand Down Expand Up @@ -59,6 +70,21 @@ matrix:


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
Expand Down Expand Up @@ -103,4 +129,4 @@ pipeline:
when:
event: tag
matrix:
PHP_VERSION: ${DRONE_TAG%.*}
PHP_VERSION: ${DRONE_TAG%.*}