Skip to content

Commit

Permalink
add netlify config
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Schrottner <[email protected]>
  • Loading branch information
aepfli committed Mar 27, 2023
1 parent 23b78ba commit 22e0aeb
Show file tree
Hide file tree
Showing 4 changed files with 885 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ languages:

ignoreFiles:
- "public"
- "node_modules"
- "tmp"
26 changes: 26 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build]
publish = "public/"
command = "hugo -b $DEPLOY_PRIME_URL"

[build.environment]
# added specifically a docker image, so the versions within makefile and netlify documentation match
# renovate: datasource=docker depName=klakegg/hugo
HUGO_VERSION = "0.107.0"
HUGO_ENABLEGITINFO = "true"

# On netlify our branch will always be the one we are currently building for
# important information regarding naming
# https://gohugo.io/getting-started/configuration/#configure-with-environment-variables
HUGOxPARAMSxGITHUB_BRANCH="$BRANCH"

[context.deploy-preview]
HUGO_ENV = "development"

[context.branch-deploy]
HUGO_ENV = "staging"

[context.production.environment]
HUGO_ENV = "production"

[context.production]
command = "hugo -b $URL"
Loading

0 comments on commit 22e0aeb

Please sign in to comment.