Update GitLab CI/CD pipeline

This commit is contained in:
2025-06-07 09:56:23 +02:00
parent bdf596a916
commit a305fd3b6e
3 changed files with 56 additions and 12 deletions

View File

@@ -1,3 +1,18 @@
.build-next-template:
stage: build
image: node:22@sha256:f6b9c31ace05502dd98ef777aaa20464362435dcc5e312b0e213121dcf7d8b95
script:
- |
cd $WORKDIR_PATH
npm ci
npm run build
artifacts:
paths:
- $WORKDIR_PATH/.next
- $WORKDIR_PATH/public
- $WORKDIR_PATH/package.json
- $WORKDIR_PATH/package-lock.json
.docker-login:
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin