Upgrade hugo

This commit is contained in:
Vincent Fiduccia
2019-02-13 16:50:07 -07:00
parent bbad3f7d0f
commit ee13c69303
208 changed files with 9112 additions and 424 deletions
+11 -10
View File
@@ -2,24 +2,25 @@ FROM rancher/docs:build as build
ENV HUGO_ENV staging
WORKDIR /run
COPY gulpfile.babel.js /run/
COPY .eslintrc.js /run/
COPY config.toml /run/
COPY archetypes archetypes
COPY assets assets
COPY data data
COPY layouts layouts
COPY scripts scripts
COPY content content
COPY src src
COPY static static
COPY .git .git
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz master.tar.gz
RUN tar -xzf master.tar.gz --strip 1 -C /run/node_modules/rancher-website-theme && rm master.tar.gz
ADD https://github.com/rancherlabs/website-theme/archive/pipes.tar.gz /run/pipes.tar.gz
RUN mkdir -p /output /theme/rancher-website-theme && tar -xzf /run/pipes.tar.gz -C /run/node_modules/rancher-website-theme --strip=1 && rm /run/pipes.tar.gz
RUN gulp build-staging
RUN ["hugo", "--buildDrafts", "--buildFuture", "--baseURL=https://staging.rancher.com/docs", "--destination=/output"]
# Make sure something got built
RUN stat /run/public/index.html
RUN stat /output/index.html
FROM nginx
VOLUME /usr/share/nginx/html/docs
COPY --from=build /run/public /usr/share/nginx/html/docs/
FROM nginx:alpine
COPY --from=build /output /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf