From 174c37f3b4ff16a5fccc23a5ec842c9acebf5884 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 27 Dec 2020 13:33:53 +0100 Subject: [PATCH] add fake deployment job to gitlab ci --- .gitlab-ci.yml | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19041fcc..7bfaf44e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,27 +1,47 @@ image: node:latest stages: - - Build - - Test + - test + - build + - deploy cache: key: ${CI_COMMIT_REF_SLUG} paths: - .npm/ -before_script: - - npm ci --cache .npm --prefer-offline - -Build: - stage: Build - script: - - npm run build - -Lint: - stage: Test +lint: + stage: test + before_script: + - npm ci --cache .npm --prefer-offline script: - npm run lint + # Test: # stage: Test # script: # - npm test + +build: + stage: build + before_script: + - npm ci --cache .npm --prefer-offline + script: + - npm run build + artifacts: + paths: + - dist + expire_in: 1 week + +deploy: + stage: deploy + dependencies: + - build + script: + - echo "Deploying to production..." + - ls dist + environment: + name: production + url: https://vtt.f3l.de/ + only: + - master