diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 635d11a..657a37d 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -10,15 +10,17 @@ matrix: steps: docker: - image: docker:dind + image: gcr.io/kaniko-project/executor:latest 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" + # - 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" + - /kaniko/executor --no-push --context $CI_WORKSPACE --dockerfile "./Dockerfile.php$PHP_VERSION" --destination "gitnet.fr/deblan/php:$PHP_VERSION" + - /kaniko/executor --no-push --context $CI_WORKSPACE --dockerfile "./Dockerfile.php$PHP_VERSION" --destination "deblan/php:$PHP_VERSION" volumes: - /var/run/docker.sock:/var/run/docker.sock when: