From e50c5f248893c4495b73ac594d9987d1dd6db833 Mon Sep 17 00:00:00 2001
From: Eduard Frankford <e.frankford@student.uibk.ac.at>
Date: Sun, 22 May 2022 13:08:27 +0200
Subject: [PATCH] testing

---
 .gitlab-ci.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 15cc758a1..52fb625e8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -131,9 +131,9 @@ deploy:
   # dependencies:
   #   - 'docker-push'
   image: ubuntu
-  script:
+  before_script:
     - whoami
-    - apt-get clean
+    - chmod 777 -R /tmp
     - apt-get update -qy
     - apt-get install -y rsync openssh-client
     - mkdir -p ~/.ssh
@@ -142,6 +142,8 @@ deploy:
     - eval "$(ssh-agent -s)"
     - ssh-add ~/.ssh/id_rsa
     - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
+  script:
+    - whoami
     - echo "Hello world"
     - ssh contDeploy@codeability-austria -p 1022 -f "(cd /home/michael/gitsearch git pull && cd src/main/docker/; GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up  -d --no-deps --build gitsearch-app)"
   when: always
-- 
GitLab