From a98b360afa732adbe95caafb2786f6411a5e4506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Sun, 20 Oct 2019 15:46:37 +0200 Subject: [PATCH] Ajout de la config CI. --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..a2a1c0bf --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +stage: + - build + +build: + image: node:10 + tags: [docker] + variables: + NPM_CONFIG_CACHE: "$CI_PROJECT_DIR/.npm" + script: + - npm install + - npm run build + artifacts: + name: dist + expire_in: 2 years + paths: + - dist/ + cache: + key: "$CI_COMMIT_REF_NAME-npm" + paths: + - "$NPM_CONFIG_CACHE" -- GitLab