Merge pull request #56 from ditatompel/jasme/cleanup

ci: Remove docker file and netlify since not being used
This commit is contained in:
Cristian Ditaputratama 2024-02-01 16:04:16 +07:00 committed by GitHub
commit 449a53f222
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 56 deletions

View file

@ -1,21 +0,0 @@
###############
# Build Stage #
###############
FROM hugomods/hugo:exts as builder
# Base URL
ARG HUGO_BASEURL=
ENV HUGO_BASEURL=${HUGO_BASEURL}
# Module Proxy
ARG HUGO_MODULE_PROXY=
ENV HUGO_MODULE_PROXY=${HUGO_MODULE_PROXY}
# Build site
COPY . /src
RUN hugo --minify --gc --enableGitInfo
# Set the fallback 404 page if defaultContentLanguageInSubdir is enabled, please replace the `en` with your default language code.
RUN cp ./public/en/404.html ./public/404.html
###############
# Final Stage #
###############
FROM hugomods/hugo:nginx
COPY --from=builder /src/public /site

View file

@ -1,35 +0,0 @@
[build]
command = "npm ci && hugo --minify --gc -b $URL" # change to suite your needs.
publish = "public"
[build.environment]
NODE_VERSION = "19"
HUGO_VERSION = "0.111.3"
HUGO_ENABLEGITINFO = "true"
HUGO_ENV = "production"
GO_VERSION = "1.20"
[[headers]]
for = "/*"
[headers.values]
Referrer-Policy = "strict-origin-when-cross-origin"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "deny"
X-XSS-Protection = "1; mode=block"
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404
[[redirects]]
from = "/id/*"
to = "/id/404.html"
status = 404
# fallback 404 page.
[[redirects]]
from = "/*"
# to = "/404.html"
to = "/en/404.html" # use this instead if defaultContentLanguageInSubdir is enabled.
status = 404