From cd3250f1fce6ff6941ee6a838e6295af1eb233c7 Mon Sep 17 00:00:00 2001 From: Pascal Thuma Date: Mon, 4 May 2026 11:22:34 +0200 Subject: [PATCH] Gitlab CI config --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9f3ced4 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file