From b0bfed4b18b112df7d187e8c6f58db615c1232ea Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 9 Apr 2024 16:58:51 +0200 Subject: [PATCH] Reorganize CI --- .gitlab-ci.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72e60366..1c927ea6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,23 @@ variables: GIT_SUBMODULE_STRATEGY: recursive -build docker image: +stages: + - test + - build + - deploy + +zola check: + stage: test + image: alpine:latest + before_script: + - apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola + - apk add yarn + - yarn install + script: + - zola check + +docker build: + stage: build interruptible: true image: name: gcr.io/kaniko-project/executor:debug @@ -14,16 +30,3 @@ build docker image: --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME --cache=true --cleanup - -build pages: - image: alpine:latest - before_script: - - apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola - - apk add yarn - - yarn install - script: - - zola build - - cp _redirects public/ - artifacts: - paths: - - public/ -- GitLab