Gitlab CI config
This commit is contained in:
1 parent
9ac20cb061
commit
cd3250f1fc
1 file changed
+32
@@ -0,0 +1,32 @@
|
||||
image: oven/bun:alpine
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
cache:
|
||||
key:
|
||||
files:
|
||||
- bun.lock
|
||||
paths:
|
||||
- node_modules/
|
||||
- .next/cache/
|
||||
|
||||
|
||||
build_job:
|
||||
stage: build
|
||||
# Target the specific runner we just created
|
||||
tags:
|
||||
- nextjs
|
||||
script:
|
||||
- echo "Installing dependencies..."
|
||||
- bun ci # 'npm ci' is faster and safer for CI/CD than 'npm install'
|
||||
- echo "Building the Next.js application..."
|
||||
- bun run build
|
||||
# Save the build output so it can be used in later deployment stages
|
||||
artifacts:
|
||||
paths:
|
||||
- .next/
|
||||
- public/
|
||||
- package.json
|
||||
- node_modules/
|
||||
expire_in: 1 week
|
||||
Reference in new issue
Block a user