Add GitLab CI, Dockerfile, and demo-1

* Configured GitLab CI for Docker image builds and added a Dockerfile with the necessary setup for the main website and demo-1.
* Updated URL and removed duplicate entry in `demos.ts` to resolve conflicts.
* Integrated `.run` configuration for lawfirm-demo1 to streamline local development.
This commit is contained in:
2025-06-07 09:04:12 +02:00
parent fce60ba750
commit 863e8cedbf
5 changed files with 81 additions and 13 deletions

10
.gitlab-ci-template.yml Normal file
View File

@@ -0,0 +1,10 @@
.docker-login:
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
docker-build-template:
image: docker:20.10@sha256:2967f0819c84dd589ed0a023b9d25dcfe7a3c123d5bf784ffbb77edf55335f0c
extends: .docker-login
script:
- docker build --build-arg WORKDIR_PATH=$WORKDIR_PATH -t $CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_REF_SLUG -f $DOCKERFILE_PATH .
- docker push $CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_REF_SLUG