update ci conf
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Simon Vieille 2023-02-05 12:03:35 +01:00
parent 21921b981e
commit 46ca5126ad
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 5 additions and 41 deletions

View file

@ -20,6 +20,9 @@ pipeline:
- docker push "deblan/php:$PHP_VERSION"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
- event: cron
- branch: [master]
mail:
image: deblan/woodpecker-email
@ -34,4 +37,5 @@ pipeline:
from_secret: mail_from
subject: "[{{ repo.owner }}/{{ repo.name }}] Pipeline #{{ build.number }}: {{ build.status }}"
when:
status: [success, failure]
- event: cron
- status: [success, failure]

View file

@ -1,40 +0,0 @@
when:
event: cron
matrix:
PHP_VERSION:
- 8.2
- 8.1
- 8.0
- 7.4
- 7.3
- 7.1
pipeline:
docker:
image: docker:dind
secrets: [registry_user, registry_password, registry_docker_password]
commands:
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin gitnet.fr
- echo "$REGISTRY_DOCKER_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- 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"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
mail:
image: deblan/woodpecker-email
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]