Merge branch 'feature/ci-refactoring'
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2023-01-12 12:57:54 +01:00
commit 1029f13135

View file

@ -7,30 +7,18 @@ matrix:
- 7.1 - 7.1
pipeline: pipeline:
build_gitnet: docker:
image: plugins/docker image: docker:dind
secrets: [registry_user, registry_password] secrets: [registry_user, registry_password, registry_docker_password]
settings: commands:
registry: gitnet.fr - echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin gitnet.fr
dockerfile: ./Dockerfile.php${PHP_VERSION} - echo "$REGISTRY_DOCKER_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
repo: gitnet.fr/${CI_REPO/docker-/} - docker build -t "deblan/php:$PHP_VERSION" -f "./Dockerfile.php$PHP_VERSION" .
tags: ${PHP_VERSION} - docker tag "deblan/php:$PHP_VERSION" "gitnet.fr/deblan/php:$PHP_VERSION"
username: - docker push "gitnet.fr/deblan/php:$PHP_VERSION"
from_secret: registry_user - docker push "deblan/php:$PHP_VERSION"
password: volumes:
from_secret: registry_password - /var/run/docker.sock:/var/run/docker.sock
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
mail: mail:
image: deblan/woodpecker-email image: deblan/woodpecker-email