use local registry for CI images

pull/7/head
Andrew Dolgov 2 years ago
parent 0d5e79d6ba
commit ba56fc416c
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

7
Jenkinsfile vendored

@ -29,7 +29,7 @@ pipeline {
docker run --rm \ docker run --rm \
--workdir /app \ --workdir /app \
-v ${env.WORKSPACE}/tt-rss:/app \ -v ${env.WORKSPACE}/tt-rss:/app \
php:8.1-cli \ registry.fakecake.org/php:8.1-cli \
php ./vendor/bin/phpunit php ./vendor/bin/phpunit
""" """
} }
@ -37,11 +37,10 @@ pipeline {
stage('phpstan') { stage('phpstan') {
steps { steps {
sh """ sh """
# php -d memory_limit=-1 ....
docker run --rm \ docker run --rm \
--workdir /app \ --workdir /app \
-v ${env.WORKSPACE}/tt-rss:/app \ -v ${env.WORKSPACE}/tt-rss:/app \
php:8.1-cli \ registry.fakecake.org/php:8.1-cli \
php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G
""" """
} }
@ -119,7 +118,7 @@ pipeline {
docker run --rm \ docker run --rm \
--workdir /app \ --workdir /app \
-v ${env.WORKSPACE}/tt-rss:/app \ -v ${env.WORKSPACE}/tt-rss:/app \
phpdoc/phpdoc:3 \ registry.fakecake.org/phpdoc/phpdoc:3 \
-d /app/tt-rss/classes \ -d /app/tt-rss/classes \
-d /app/tt-rss/include \ -d /app/tt-rss/include \
-t /app/phpdoc/out \ -t /app/phpdoc/out \

Loading…
Cancel
Save