From ea4556febc37667eedb90d5c5d51e40b5f9b1e44 Mon Sep 17 00:00:00 2001 From: aendre Date: Sat, 11 Feb 2023 07:56:50 +0100 Subject: [PATCH] docs: add node alpine alternative to GitLab CI deploy (#1813) --- docs/guide/deploying.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/guide/deploying.md b/docs/guide/deploying.md index add52219..e8d9de03 100644 --- a/docs/guide/deploying.md +++ b/docs/guide/deploying.md @@ -139,6 +139,25 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f - main ``` +4. Alternatively, if you want to use an _alpine_ version of node, you have to install `git` manually. In that case, the code above modifies to this: + ```yaml + image: node:16-alpine + pages: + cache: + paths: + - node_modules/ + before_script: + - apk add git + script: + - yarn install + - yarn docs:build + artifacts: + paths: + - public + only: + - main + ``` + ## Azure Static Web Apps 1. Follow the [official documentation](https://docs.microsoft.com/en-us/azure/static-web-apps/build-configuration).