From 23037ced8c202dc641c3858f0be363a01ac87598 Mon Sep 17 00:00:00 2001
From: Eduard Frankford <e.frankford@student.uibk.ac.at>
Date: Wed, 29 Jun 2022 11:17:23 +0200
Subject: [PATCH] changed publish image to only local dockerBuild

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 53196e06b..173a8cf35 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -113,41 +113,41 @@ frontend-test:
     - export MAVEN_USER_HOME=`pwd`/.maven
     - npm ci --cache .npm --prefer-offline
 
-# deploy:
-#   stage: release
-#   cache: []
-# only:
-#   refs:
-#     - development
-# dependencies:
-#   - docker-push
-#   - maven-test
-#   - frontend-test
-# before_script:
-#   - mkdir -p ~/.ssh
-#   - echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
-#   - chmod 700 ~/.ssh/id_rsa
-#   - eval "$(ssh-agent -s)"
-#   - ssh-add ~/.ssh/id_rsa
-#   - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-# script:
-#   - ssh contDeploy@codeability-austria -p 1022 "cd /home/michael/gitsearch && git pull && ./mvnw -Dmaven.test.failure.ignore=true package jib:dockerBuild"
-# when: on_success
-
-# This pipeline step does not work with nfs file system
-docker-push:
+docker-build:
   stage: release
   cache: []
   # only:
   #   refs:
   #     - development
-  variables:
-    REGISTRY_URL: sharing-codeability.uibk.ac.at:5051
-    IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform
+  # dependencies:
+  #   - docker-push
+  #   - maven-test
+  #   - frontend-test
+  before_script:
+    - mkdir -p ~/.ssh
+    - echo "${SSH_BKY_DEPLOY}" > ~/.ssh/id_rsa
+    - chmod 700 ~/.ssh/id_rsa
+    - eval "$(ssh-agent -s)"
+    - ssh-add ~/.ssh/id_rsa
+    - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
   script:
-    - ./mvnw verify -Pprod -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token  -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME
+    - ssh contDeploy@codeability-austria -p 1022 "cd /gitsearch2/gitsearch && git pull && ./mvnw -Dmaven.test.failure.ignore=true package jib:dockerBuild"
   when: on_success
 
+# This pipeline step does not work with nfs file system
+# docker-push:
+#   stage: release
+#   cache: []
+#   # only:
+#   #   refs:
+#   #     - development
+#   variables:
+#     REGISTRY_URL: sharing-codeability.uibk.ac.at:5051
+#     IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform
+#   script:
+#     - ./mvnw verify -Pprod -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token  -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME
+#   when: on_success
+
 # deploy:
 #   stage: deploy
 #   cache: []
-- 
GitLab