diff --git a/Dockerfile b/Dockerfile index 9aa8116..2d7c88c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,4 @@ RUN yarn install && \ RUN cp .env.staging .env # Run Migration and dev-webserver -CMD /root/.symfony/bin/symfony console doctrine:migrations:migrate && /root/.symfony/bin/symfony serve --port=9999 --no-tls \ No newline at end of file +CMD /root/.symfony/bin/symfony console doctrine:migrations:migrate --no-interaction && /root/.symfony/bin/symfony serve --port=9999 --no-tls \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 69b94aa..9b73601 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,6 +24,13 @@ node { } } + stage('Push image') { + docker.withRegistry('https://hub.thisfro.ch') { + app.push("$BUILD_NUMBER") + app.push('latest') + } + } + stage('Deploy staging') { sh 'docker-compose --project-directory /opt/containers/pflaenz.li --file /opt/containers/pflaenz.li/docker-compose.yml up -d' }