40 lines
835 B
YAML
40 lines
835 B
YAML
image: docker:20.10@sha256:2967f0819c84dd589ed0a023b9d25dcfe7a3c123d5bf784ffbb77edf55335f0c
|
|
|
|
include:
|
|
- local: '.gitlab-ci-template.yml'
|
|
- local: 'lawfirm-demos/.gitlab-ci.yml'
|
|
|
|
stages:
|
|
- build
|
|
- dockerize
|
|
|
|
variables:
|
|
CI_REGISTRY_IMAGE: $CI_REGISTRY/$CI_PROJECT_PATH
|
|
PROJECT_NAME: $CI_PROJECT_NAME
|
|
TAG: $CI_COMMIT_REF_SLUG
|
|
NEXT_PUBLIC_ENV: "production"
|
|
|
|
cache:
|
|
key: ${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- node_modules/
|
|
- .next/cache/
|
|
|
|
# Main Website - Build
|
|
build_main:
|
|
stage: build
|
|
extends: .build-next-template
|
|
variables:
|
|
WORKDIR_PATH: main-website
|
|
|
|
# Main Website - Dockerize
|
|
dockerize_main:
|
|
stage: dockerize
|
|
extends: .docker-build-template
|
|
variables:
|
|
IMAGE_NAME: main-website
|
|
WORKDIR_PATH: main-website
|
|
DOCKERFILE_PATH: Dockerfile
|
|
needs:
|
|
- job: build_main
|
|
artifacts: true |