ci(build): remove on build per image
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2023-01-12 10:51:24 +01:00
parent e86519ee23
commit da23e64839

View file

@ -7,30 +7,16 @@ 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 -u "$REGISTRY_USER" --password-stdin gitnet.fr
dockerfile: ./Dockerfile.php${PHP_VERSION} - echo "$REGISTRY_DOCKER_PASSWORD" | docker -u "$REGISTRY_USER" --password-stdin gitnet.fr
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:
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
mail: mail:
image: deblan/woodpecker-email image: deblan/woodpecker-email