mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-28 05:59:03 +00:00
Fix hugo environment for robots.txt in not-prod
This commit is contained in:
+1
-1
@@ -1,4 +1,5 @@
|
|||||||
FROM rancher/docs:build
|
FROM rancher/docs:build
|
||||||
|
ENV HUGO_ENV dev
|
||||||
|
|
||||||
VOLUME ["/site"]
|
VOLUME ["/site"]
|
||||||
WORKDIR /run
|
WORKDIR /run
|
||||||
@@ -6,7 +7,6 @@ COPY package.json /run/
|
|||||||
|
|
||||||
RUN ln -s /site/config.toml /run \
|
RUN ln -s /site/config.toml /run \
|
||||||
&& ln -s /site/.eslintrc.js /run \
|
&& ln -s /site/.eslintrc.js /run \
|
||||||
&& ln -s /site/netlify.toml /run \
|
|
||||||
&& ln -s /site/archetypes /run \
|
&& ln -s /site/archetypes /run \
|
||||||
&& ln -s /site/content /run \
|
&& ln -s /site/content /run \
|
||||||
&& ln -s /site/data /run \
|
&& ln -s /site/data /run \
|
||||||
|
|||||||
+1
-3
@@ -1,10 +1,10 @@
|
|||||||
FROM rancher/docs:build as build
|
FROM rancher/docs:build as build
|
||||||
|
ENV HUGO_ENV production
|
||||||
|
|
||||||
WORKDIR /run
|
WORKDIR /run
|
||||||
COPY gulpfile.babel.js /run/
|
COPY gulpfile.babel.js /run/
|
||||||
COPY .eslintrc.js /run/
|
COPY .eslintrc.js /run/
|
||||||
COPY config.toml /run/
|
COPY config.toml /run/
|
||||||
COPY netlify.toml /run/
|
|
||||||
COPY archetypes archetypes
|
COPY archetypes archetypes
|
||||||
COPY data data
|
COPY data data
|
||||||
COPY layouts layouts
|
COPY layouts layouts
|
||||||
@@ -12,8 +12,6 @@ COPY scripts scripts
|
|||||||
COPY content content
|
COPY content content
|
||||||
COPY src src
|
COPY src src
|
||||||
|
|
||||||
ENV HUGO_ENV production
|
|
||||||
|
|
||||||
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz master.tar.gz
|
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
|
RUN tar -xzf master.tar.gz --strip 1 -C /run/node_modules/rancher-website-theme && rm master.tar.gz
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -1,10 +1,10 @@
|
|||||||
FROM rancher/docs:build as build
|
FROM rancher/docs:build as build
|
||||||
|
ENV HUGO_ENV staging
|
||||||
|
|
||||||
WORKDIR /run
|
WORKDIR /run
|
||||||
COPY gulpfile.babel.js /run/
|
COPY gulpfile.babel.js /run/
|
||||||
COPY .eslintrc.js /run/
|
COPY .eslintrc.js /run/
|
||||||
COPY config.toml /run/
|
COPY config.toml /run/
|
||||||
COPY netlify.toml /run/
|
|
||||||
COPY archetypes archetypes
|
COPY archetypes archetypes
|
||||||
COPY data data
|
COPY data data
|
||||||
COPY layouts layouts
|
COPY layouts layouts
|
||||||
@@ -12,8 +12,6 @@ COPY scripts scripts
|
|||||||
COPY content content
|
COPY content content
|
||||||
COPY src src
|
COPY src src
|
||||||
|
|
||||||
ENV HUGO_ENV production
|
|
||||||
|
|
||||||
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz master.tar.gz
|
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
|
RUN tar -xzf master.tar.gz --strip 1 -C /run/node_modules/rancher-website-theme && rm master.tar.gz
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
[build]
|
|
||||||
command = "npm run build"
|
|
||||||
publish = "public"
|
|
||||||
|
|
||||||
[build.environment]
|
|
||||||
HUGO_VERSION = "0.36"
|
|
||||||
|
|
||||||
[context.production.environment]
|
|
||||||
HUGO_ENV = "production"
|
|
||||||
NODE_ENV = "production"
|
|
||||||
|
|
||||||
[context.deploy-preview]
|
|
||||||
command = "npm run build:preview"
|
|
||||||
Reference in New Issue
Block a user