docker-php/.woodpecker.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-03 12:07:14 +01:00
matrix:
PHP_VERSION:
- 8.1
2023-01-09 22:33:19 +01:00
- 8.0
- 7.4
- 7.3
- 7.1
2023-01-03 12:07:14 +01:00
pipeline:
2023-01-12 10:51:24 +01:00
docker:
image: docker:dind
secrets: [registry_user, registry_password, registry_docker_password]
commands:
2023-01-12 10:53:09 +01:00
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin gitnet.fr
2023-01-12 10:54:06 +01:00
- echo "$REGISTRY_DOCKER_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
2023-01-12 10:51:24 +01:00
- docker build -t "deblan/php:$PHP_VERSION" -f "./Dockerfile.php$PHP_VERSION" .
- docker tag "deblan/php:$PHP_VERSION" "gitnet.fr/deblan/php:$PHP_VERSION"
- docker push "gitnet.fr/deblan/php:$PHP_VERSION"
- docker push "deblan/php:$PHP_VERSION"
2023-01-12 10:56:36 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
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]