From d9e65066b5c5a496414fc5f2cd4a10d45a3719a2 Mon Sep 17 00:00:00 2001 From: Jasmerah1966 Date: Thu, 1 Feb 2024 16:00:54 +0700 Subject: [PATCH] ci: Remove docker file and netlify since not being used --- Dockerfile | 21 --------------------- netlify.toml | 35 ----------------------------------- 2 files changed, 56 deletions(-) delete mode 100644 Dockerfile delete mode 100644 netlify.toml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 070440c..0000000 --- a/Dockerfile +++ /dev/null @@ -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 diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 83a8f79..0000000 --- a/netlify.toml +++ /dev/null @@ -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