mirror of https://gitlab.com/curben/blog
feat(ci): replace node with bun
This commit is contained in:
parent
6e837d53c6
commit
a81e34a62e
|
@ -1,4 +1,4 @@
|
||||||
image: node:alpine # Use latest version of Node.js on Alpine
|
image: oven/bun:alpine
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -13,11 +13,11 @@ build:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add git
|
- apk update && apk add git
|
||||||
- npm install
|
- bun install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Generate site
|
# Generate site
|
||||||
- npm run build
|
- bun run build
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job
|
# Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job
|
||||||
|
@ -85,11 +85,11 @@ deploy_pages:
|
||||||
renovate:
|
renovate:
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add git
|
- apk update && apk add git
|
||||||
- npm install
|
- bun install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm install snyk @snyk/protect && npm run snyk
|
- bun install snyk @snyk/protect && bun run snyk
|
||||||
- npm install renovate && npm run renovate
|
- bun install renovate && bun run renovate
|
||||||
|
|
||||||
# No artifact
|
# No artifact
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
Loading…
Reference in New Issue