From 0f215b5c232c8a325f499dbb58fc3ee16799360b Mon Sep 17 00:00:00 2001
From: Bossanyi Tibor <sw@andio.biz>
Date: Tue, 12 May 2020 21:54:35 +0200
Subject: [PATCH 1/2] deploy ci fix, port change to scp

---
 ci-cd/deploy.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci-cd/deploy.sh b/ci-cd/deploy.sh
index 8ccdbe5..3e14dcb 100644
--- a/ci-cd/deploy.sh
+++ b/ci-cd/deploy.sh
@@ -1 +1 @@
-sshpass -f /ci-cd/.ssh/.scp scp build/libs/aitrainer_server-0.0.2.jar bosi@andio.shop:/home/bosi/deploy/aitrainer_server.jar
\ No newline at end of file
+sshpass -f /ci-cd/.ssh/.scp scp -p 6622 build/libs/aitrainer_server-0.0.2.jar bosi@andio.shop:/home/bosi/deploy/aitrainer_server.jar
\ No newline at end of file

From 0eba844cb7ee04b775f547bf3298da3c7cc5e65c Mon Sep 17 00:00:00 2001
From: Bossanyi Tibor <sw@andio.biz>
Date: Tue, 12 May 2020 22:05:25 +0200
Subject: [PATCH 2/2] deploy ci fix, chmod +x to deploy.sh

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fe5341d..adfb668 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -57,6 +57,7 @@ deploy:
   image: mysql:latest
   script:
     - apt-get update && apt-get --assume-yes install sshpass
+    - chmod +x ci-cd/deploy.sh
     - ci-cd/deploy.sh
   only:
     - master