update ci
Some checks failed
ci/woodpecker/push/build/5 Pipeline is pending
ci/woodpecker/push/build/6 Pipeline is pending
ci/woodpecker/push/build/7 Pipeline is pending
ci/woodpecker/push/build/4 Pipeline failed
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/push/build/3 Pipeline failed
ci/woodpecker/push/build/1 Pipeline failed

This commit is contained in:
Simon Vieille 2024-03-01 11:46:32 +01:00
parent ded5fa6dcd
commit 362df44be0

View file

@ -9,23 +9,27 @@ matrix:
- 7.1
steps:
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
"Docker build and push":
image: woodpeckerci/plugin-docker-buildx
settings:
repo: gitnet.fr/deblan/php,deblan/php
tags: ${PHP_VERSION}
logins:
- registry: https://gitnet.fr
username:
from_secret: registry_user
password:
from_secret: registry_password
- registry: https://index.docker.io/v1/
username:
from_secret: registry_user
password:
from_secret: registry_docker_password
when:
- event: cron
- branch: [master]
mail:
"Send notification":
image: deblan/woodpecker-email
settings:
dsn: