diff --git a/.woodpecker.yml b/.woodpecker.yml index 43facdf..6d9b206 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -7,30 +7,18 @@ matrix: - 7.1 pipeline: - build_gitnet: - image: plugins/docker - secrets: [registry_user, registry_password] - settings: - registry: gitnet.fr - dockerfile: ./Dockerfile.php${PHP_VERSION} - repo: gitnet.fr/${CI_REPO/docker-/} - tags: ${PHP_VERSION} - username: - from_secret: registry_user - password: - from_secret: registry_password - - build_hub: - image: plugins/docker - secrets: [registry_user, registry_docker_password] - settings: - dockerfile: ./Dockerfile.php${PHP_VERSION} - repo: ${CI_REPO/docker-/} - tags: ${PHP_VERSION} - username: - from_secret: registry_user - password: - from_secret: registry_docker_password + 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