docker-php/.woodpecker.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-03 12:07:14 +01:00
matrix:
PHP_VERSION:
- 7.1
- 7.3
- 7.4
- 8.0
- 8.1
pipeline:
build_gitnet:
image: plugins/docker
secrets: [registry_user, registry_password]
settings:
2023-01-03 12:10:16 +01:00
registry: gitnet.fr
dockerfile: ./Dockerfile.php${PHP_VERSION}
2023-01-03 12:15:16 +01:00
repo: gitnet.fr/${CI_REPO/docker-/}
2023-01-03 12:10:16 +01:00
tags: ${PHP_VERSION}
2023-01-03 12:07:14 +01:00
username:
from_secret: registry_user
password:
from_secret: registry_password
build_hub:
image: plugins/docker
secrets: [registry_user, registry_docker_password]
settings:
2023-01-03 12:10:16 +01:00
dockerfile: ./Dockerfile.php${PHP_VERSION}
repo: ${CI_REPO/docker-/}
tags: ${PHP_VERSION}
2023-01-03 12:07:14 +01:00
username:
from_secret: registry_user
password:
from_secret: registry_docker_password
2023-01-03 12:18:51 +01:00
mail:
2023-01-04 15:49:54 +01:00
image: deblan/woodpecker-email
2023-01-03 12:18:51 +01:00
settings:
host:
from_secret: mail_host
username:
from_secret: mail_username
password:
from_secret: mail_password
from:
from_secret: mail_from
subject: "[{{ repo.owner }}/{{ repo.name }}] Pipeline #{{ build.number }}: {{ build.status }}"
when:
- status: [success, failure]