Merge branch 'feature/ci-refactoring'
This commit is contained in:
commit
1029f13135
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue