Kilian Decaderincourt b8a6be8c34 ci: fix npm build cmd
2021-09-08 17:30:31 +02:00

37 lines
725 B
YAML

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:
- npm run build
artifacts:
paths:
- dist