Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM klakegg/hugo:0.75.1-ext-ubuntu as builder

COPY ./ /src/

RUN set -x && ln -s /bin/bash /usr/bin/bash && make generate

FROM nginxinc/nginx-unprivileged:1.18-alpine

COPY --from=builder /src/public/ /usr/share/nginx/html/
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
generate:
npm install -D --save postcss postcss-cli autoprefixer && cd themes/docsy && git submodule update -f --init && cd ../.. && hugo --gc --minify
1 change: 0 additions & 1 deletion OWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
approvers:
- stevekuznetsov
- smarterclayton
- bbguimaraes
- droslean
- hongkailiu
Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[build]
publish = "public"
command = "npm install -D --save postcss postcss-cli autoprefixer && cd themes/docsy && git submodule update -f --init && cd ../.. && hugo --gc --minify"
command = "make generate"

[context.production.environment]
HUGO_VERSION = "0.75.1"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo --gc --minify --enableGitInfo"
command = "make generate"

[context.split1.environment]
HUGO_VERSION = "0.75.1"
HUGO_ENV = "production"

[context.deploy-preview]
command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
command = "make generate"

[context.deploy-preview.environment]
HUGO_VERSION = "0.75.1"
Expand Down