Fix pipeline (#26)
CureNetMulti/pipeline/head There was a failure building this commit Details

Co-authored-by: Sieciech <www.sieciech@gmail.com>
Co-authored-by: Sieciech <michal@fufle.net>
Co-authored-by: admin <jenkins@michal.sieciechowicz.pl>
Reviewed-on: http://git.fufle.net/Community/CureNet/pulls/26
Co-Authored-By: Sieciech <sieciech@noreply.fufle.net>
Co-Committed-By: Sieciech <sieciech@noreply.fufle.net>
This commit is contained in:
Michał Sieciechowicz 2021-07-28 13:43:36 +00:00
parent f57d6d81f0
commit dc5cb30510
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -76,7 +76,7 @@ pipeline {
dir(path: 'src/backend') {
sh 'APP_SECRET=`php8.0 -r "echo md5(\\"branch=${BRANCH_NAME};\\");"` && sed -i "s/APP_SECRET=.*/APP_SECRET=${APP_SECRET}/g" .env'
sh '''sed -i 's/DATABASE_URL=.*/DATABASE_URL=${DatabaseUrlTesting}/g' .env.test'''
sh 'composer dump-env test'
sh 'php8.0 /usr/local/bin/composer dump-env test'
sh 'php8.0 bin/console doctrine:schema:update --force';
}
@ -125,7 +125,7 @@ pipeline {
dir(path: 'src/backend') {
sh 'APP_SECRET=`php8.0 -r "echo md5(\\"branch=${BRANCH_NAME};\\");"` && sed -i "s/APP_SECRET=.*/APP_SECRET=${APP_SECRET}/g" .env'
sh 'sed -i "s/DATABASE_URL=.*/DATABASE_URL=${DatabaseUrl}/g" .env.dev'
sh 'composer dump-env dev'
sh 'php8.0 /usr/local/bin/composer dump-env dev'
}
}