diff --git a/.env.example b/.env.example index 037e734..b7cbb8d 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,7 @@ APP_URL=http://localhost LOG_CHANNEL=stack DB_CONNECTION=mysql -DB_HOST=127.0.0.1 +DB_HOST=db DB_PORT=3306 DB_DATABASE=clearbowl DB_USERNAME=root diff --git a/Jenkinsfile b/Jenkinsfile index 4710937..2c817c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,8 +6,8 @@ node { sh 'while ! mysqladmin ping -hdb --silent; do sleep 1; done' } } - docker.image('php:7.4').inside("--link ${c.id}:db") { - stage("Build") { sh 'composer install && mv .env.example .env'} + docker.image('circleci/php:7.4').inside("--link ${c.id}:db") { + stage("Build") { sh 'composer install && mv .env.example .env' } stage("Test") { sh 'vendor/bin/phpunit' } } }