From 42b174b2482e4ad857246340c15d0a8e2f9f47e4 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Thu, 2 Jul 2020 09:23:49 +0200 Subject: [PATCH] lint yml --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 634598f1..ebe60944 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,9 @@ build: production: stage: deploy + image: alpine:3.1 + before_script: - 'which ssh-agent || ( apk add --update openssh )' - eval $(ssh-agent -s) @@ -32,7 +34,9 @@ production: - 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - echo "$KNOWNHOSTS" > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts + rules: - if: '$CI_COMMIT_BRANCH == "develop"' + script: - scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest -- GitLab