Simon Vieille
61fc01f27d
All checks were successful
ci/woodpecker/push/build/4 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/5 Pipeline was successful
ci/woodpecker/push/build/6 Pipeline was successful
ci/woodpecker/push/build/7 Pipeline was successful
45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
matrix:
|
|
PHP_VERSION:
|
|
- 8.3
|
|
- 8.2
|
|
- 8.1
|
|
- 8.0
|
|
- 7.4
|
|
- 7.3
|
|
- 7.1
|
|
|
|
steps:
|
|
docker:
|
|
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"
|
|
- /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:
|
|
- event: cron
|
|
- branch: [master]
|
|
|
|
mail:
|
|
image: deblan/woodpecker-email
|
|
settings:
|
|
host:
|
|
from_secret: mail_host
|
|
username:
|
|
from_secret: mail_username
|
|
password:
|
|
from_secret: mail_password
|
|
from:
|
|
from_secret: mail_from
|
|
subject: "[{{ repo.owner }}/{{ repo.name }}] Pipeline #{{ build.number }}: {{ build.status }}"
|
|
when:
|
|
- event: cron
|
|
- status: [success, failure]
|