2021-09-08 17:27:17 +02:00
|
|
|
include:
|
|
|
|
- project: "to-be-continuous/docker"
|
|
|
|
ref: "2.0.0"
|
|
|
|
file: "/templates/gitlab-ci-docker.yml"
|
|
|
|
|
|
|
|
variables:
|
|
|
|
PROD_REF: "/^main$/"
|
|
|
|
AUTODEPLOY_TO_PROD: "true" # Always publish
|
|
|
|
|
|
|
|
DOCKER_REGISTRY_RELEASE_USER: kiliandeca
|
|
|
|
# DOCKER_REGISTRY_RELEASE_PASSWORD: # Defined in CI/CD Settings
|
|
|
|
DOCKER_RELEASE_IMAGE: docker.io/kiliandeca/excalidraw-storage-backend:latest
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- package-build
|
|
|
|
- package-test
|
|
|
|
- publish
|
|
|
|
|
|
|
|
.node-template:
|
|
|
|
image: node:14-alpine
|
|
|
|
before_script:
|
|
|
|
- npm ci --cache .npm --prefer-offline
|
|
|
|
cache:
|
|
|
|
key: npm-cache
|
|
|
|
paths:
|
|
|
|
- .npm-cache
|
|
|
|
|
|
|
|
node-build:
|
|
|
|
stage: build
|
|
|
|
extends: .node-template
|
|
|
|
script:
|
2021-09-08 17:30:31 +02:00
|
|
|
- npm run build
|
2021-09-08 17:27:17 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist
|