From 867d9cf6f6c735333b4dfc823fad50c24bbef179 Mon Sep 17 00:00:00 2001 From: Pascal Osterwinter <pascal.osterwinter@spotgroup.de> Date: Tue, 30 Aug 2022 08:24:35 +0000 Subject: [PATCH] Testing Pipeline for schema-link-checker --- .gitlab-ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 793e052af..5429b48eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,8 +13,9 @@ include: stages: - build - upload + - validate -build: +.build: stage: build image: node:lts-alpine variables: @@ -33,7 +34,7 @@ build: rules: - when: always -upload:preview: +.upload:preview: stage: upload image: alpine:latest environment: @@ -51,7 +52,7 @@ upload:preview: - ssh -o CheckHostIP=no fitko@dorado.uberspace.de mkdir -p preview.docs.fitko.dev/fit-connect - rsync -rLvz --delete --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./build/. fitko@dorado.uberspace.de:preview.docs.fitko.dev/fit-connect/$CI_COMMIT_REF_SLUG -upload:production: +.upload:production: stage: upload image: alpine:latest environment: @@ -67,7 +68,7 @@ upload:production: - ssh -o CheckHostIP=no fitko@dorado.uberspace.de mkdir -p docs.fitko.de/fit-connect - rsync -rLvz --delete --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./build/. fitko@dorado.uberspace.de:docs.fitko.de/fit-connect -stop:preview: +.stop:preview: stage: .post image: alpine:latest environment: @@ -82,3 +83,15 @@ stop:preview: - *pre-deploy-uber-space-setup script: - ssh fitko@dorado.uberspace.de "rm -rf preview.docs.fitko.dev/fit-connect/$CI_COMMIT_REF_SLUG" + +link-check: + stage: validate + variables: + CRAWLER_URL: https://docs.fitko.de/fit-connect/docs + CRAWLER_DOMAIN: docs.fitko.de/fit-connect/docs + needs: + - upload:preview + trigger: + strategy: depend + project: fit-connect/schema-link-checker + branch: main -- GitLab