From 2437d3379eabc6ba8f1bdcd7d158587f8f9caed6 Mon Sep 17 00:00:00 2001
From: Michael Gutbier <migu@cgan.de>
Date: Sun, 22 Dec 2019 10:49:29 +0100
Subject: [PATCH] fiddle with ssh

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a58e807..43d603d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,6 +21,7 @@ publish_guide:
   stage: publish
   image: kroniak/ssh-client
   before_script:
+    - apk update
     - apk add rsync
     - mkdir -p ~/.ssh
     - chmod 700 ~/.ssh
@@ -29,6 +30,7 @@ publish_guide:
     - ssh-keyscan -H "$PUBLISH_HOST" >> ~/.ssh/known_hosts
     - chmod 644 ~/.ssh/known_hosts
   script:
+    - 'ssh $PUBLISH_USER@$PUBLISH_HOST rsync --version'
     - 'rsync -av angelguide_*.pdf $PUBLISH_USER@$PUBLISH_HOST:$PUBLISH_PATH'
 #  rules:
 #    - if: '$CI_COMMIT_REF_NAME == "master"'
-- 
GitLab