From b8e4667d500840d7de2d8436ecb31d906afa51a7 Mon Sep 17 00:00:00 2001
From: Andreas <andreksv@ntnu.no>
Date: Thu, 2 May 2024 20:13:29 +0200
Subject: [PATCH] test workflow

---
 .gitlab-ci.yml | 46 +---------------------------------------------
 1 file changed, 1 insertion(+), 45 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8cc0079..b58aca5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,53 +10,9 @@ cache:
     - build/
 
 stages:
-  - install
-  - build
-  - test
-  - lint
   - docker_build_and_push
   - deploy_docker
 
-install_dependencies:
-  stage: install
-  script:
-    - npm ci
-
-build_project:
-  stage: build
-  script:
-    - npm ci
-    - npm run build
-  dependencies:
-    - install_dependencies
-
-vitest_unit-tests:
-  stage: test
-  cache:
-    key: ${CI_COMMIT_REF_SLUG}
-    paths:
-        - node_modules/
-    policy: pull
-  script:
-    - npm ci
-    - npm run test:unit
-  dependencies:
-    - install_dependencies
-
-eslint_run-lint:
-  stage: lint
-  cache:
-    key: ${CI_COMMIT_REF_SLUG}
-    paths:
-        - node_modules/
-    policy: pull
-  script:
-    - npm ci
-    - npm run lint
-  dependencies:
-    - install_dependencies
-  allow_failure: true  
-
 docker_build_and_push:
   stage: docker_build_and_push
   image: docker:latest
@@ -80,5 +36,5 @@ deploy_docker:
     - apt-get -yqq install ssh
     - apt-get install sshpass
   script:
-    - sshpass -p sParest1en ssh -v -o StrictHostKeyChecking=no root@128.199.53.153 "docker ps -q --filter 'name=^frontend$' | grep -q . && docker kill frontend && docker rm frontend && docker run -d --name frontend registry.gitlab.com/$DOCKER_USER/sparesti-registry:frontend"
+    - sshpass -p sParest1en ssh -v -o StrictHostKeyChecking=no root@128.199.53.153 "docker ps -q --filter 'name=^frontend$' | grep -q . && docker kill frontend && docker rm frontend; docker run -d --name frontend registry.gitlab.com/$DOCKER_USER/sparesti-registry:frontend"
   when: manual
\ No newline at end of file
-- 
GitLab