php/.drone.yml

120 lines
2.2 KiB
YAML
Raw Normal View History

2021-03-28 18:50:39 +00:00
kind: pipeline
name: default
steps:
- name: php7.4
image: plugins/docker
2021-04-11 12:54:23 +00:00
pull: if-not-exists
2021-03-28 18:50:39 +00:00
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo:
from_secret: hub_repo
build_args:
- PHP_VERSION=7.4-fpm-alpine3.13
tags: 7.4-alpine
when:
branch:
2021-03-28 18:52:02 +00:00
- master
2021-03-28 18:50:39 +00:00
depends_on: [ clone ]
2021-06-14 16:58:52 +00:00
- name: php7.4-dev
image: plugins/docker
pull: if-not-exists
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo:
from_secret: hub_repo
build_args:
- PHP_VERSION=7.4-fpm-alpine3.13
- ENVIRONMENT=development
tags: 7.4-alpine-dev
when:
branch:
- master
depends_on: [ clone ]
2021-03-28 18:50:39 +00:00
- name: php7.3
image: plugins/docker
2021-04-11 12:54:23 +00:00
pull: if-not-exists
2021-03-28 18:50:39 +00:00
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo:
from_secret: hub_repo
build_args:
- PHP_VERSION=7.3-fpm-alpine3.12
tags: 7.3-alpine
when:
branch:
2021-03-28 18:52:02 +00:00
- master
2021-03-28 18:50:39 +00:00
depends_on: [ clone ]
- name: php7.2
image: plugins/docker
2021-04-11 12:54:23 +00:00
pull: if-not-exists
2021-03-28 18:50:39 +00:00
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo:
from_secret: hub_repo
build_args:
- PHP_VERSION=7.2-fpm-alpine3.12
tags: 7.2-alpine
when:
branch:
2021-03-28 18:52:02 +00:00
- master
2021-03-28 18:50:39 +00:00
depends_on: [ clone ]
2021-05-21 11:30:39 +00:00
- name: php7.3-dev
image: plugins/docker
pull: if-not-exists
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo:
from_secret: hub_repo
build_args:
- PHP_VERSION=7.3-fpm-alpine3.12
2021-06-14 16:58:52 +00:00
- ENVIRONMENT=development
2021-05-21 12:10:11 +00:00
tags: 7.3-alpine-dev
2021-05-21 11:30:39 +00:00
when:
branch:
- master
depends_on: [ clone ]
2021-03-28 18:50:39 +00:00
2021-04-11 12:01:26 +00:00
- name: webhook
2021-04-11 10:59:00 +00:00
image: plugins/webhook
2021-04-11 12:54:23 +00:00
pull: if-not-exists
2021-04-11 10:59:00 +00:00
settings:
urls: https://huginn.cynarski.pl/users/1/web_requests/18/Qimktqp5KsPz8S9EgNrUuSuXU93GRHYL
content_type: application/json
template: |
{
2021-04-11 12:01:26 +00:00
"title": "{{ build.status }} - {{ repo.name }}",
2021-04-11 11:10:16 +00:00
"details": "{{ repo.name }}"
2021-04-11 11:06:08 +00:00
}
2021-04-11 11:07:47 +00:00
debug: true
2021-04-11 12:54:23 +00:00
depends_on:
- php7.4
- php7.3
- php7.2
when:
2021-04-11 12:18:50 +00:00
status:
- success
- failure
2021-04-11 12:49:15 +00:00
2021-04-11 11:42:32 +00:00