Skip to content

Commit ea4556f

Browse files
authored
docs: add node alpine alternative to GitLab CI deploy (#1813)
1 parent dd1f0bf commit ea4556f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/guide/deploying.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,25 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
139139
- main
140140
```
141141
142+
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:
143+
```yaml
144+
image: node:16-alpine
145+
pages:
146+
cache:
147+
paths:
148+
- node_modules/
149+
before_script:
150+
- apk add git
151+
script:
152+
- yarn install
153+
- yarn docs:build
154+
artifacts:
155+
paths:
156+
- public
157+
only:
158+
- main
159+
```
160+
142161
## Azure Static Web Apps
143162

144163
1. Follow the [official documentation](https://docs.microsoft.com/en-us/azure/static-web-apps/build-configuration).

0 commit comments

Comments
 (0)