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
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