jek build in dockerfile

This commit is contained in:
Kameron Kenny - pi501 2024-05-17 13:59:28 -04:00
parent d781797fcb
commit f604c071b0
2 changed files with 9 additions and 8 deletions

View File

@ -24,8 +24,9 @@ WORKDIR $NGINX_CONF_D
COPY ./app/conf/nginx/nginx.conf . COPY ./app/conf/nginx/nginx.conf .
WORKDIR $LOCATION_JEKYLL/sites/$SITE WORKDIR $LOCATION_JEKYLL/sites/$SITE
COPY ./_site . COPY . .
RUN bundle install RUN bundle install
RUN JEKYLL_ENV=production bundle exec jekyll build
ENTRYPOINT /usr/local/sbin/entrypoint.sh ENTRYPOINT /usr/local/sbin/entrypoint.sh

14
Jenkinsfile vendored
View File

@ -14,13 +14,13 @@ pipeline {
} }
} }
stage("Jekyll Build") { # stage("Jekyll Build") {
steps { # steps {
script { # script {
sh 'JEKYLL_ENV=production bundle exec jekyll build' # sh 'JEKYLL_ENV=production bundle exec jekyll build'
} # }
} # }
} # }
stage("Build Containers and push to registry") { stage("Build Containers and push to registry") {
steps { steps {