From 87a70cd5514bb97922d0e44a99f26009a3f9d0e3 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Tue, 9 Apr 2024 16:59:53 +0200
Subject: [PATCH] Revert changes

---
 .gitlab-ci.yml | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2217431a..1c927ea6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,22 @@
+variables:
+  GIT_SUBMODULE_STRATEGY: recursive
+
 stages:
+  - test
   - build
   - deploy
 
-variables:
-  GIT_SUBMODULE_STRATEGY: recursive
+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
 
-build docker image:
+docker build:
   stage: build
   interruptible: true
   image:
@@ -18,14 +29,4 @@ build docker image:
        --dockerfile $CI_PROJECT_DIR/Dockerfile
        --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
        --cache=true
-       --digestfile=DIGESTFILE
        --cleanup
-
-deploy docker image:
-  stage: deploy
-  image: bitnami/kubectl:latest
-  script:
-    - cd deploy
-    - sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@sha256:$(cat DIGESTFILE)/g
-    - cat deployment.yaml
-#    - for file in *; do kubectl apply -f $file; done
-- 
GitLab