From 237cb98f1d5dcd2529460bf4a470a0d28d0c6d3f Mon Sep 17 00:00:00 2001 From: Jesusalva Jesusalva Date: Sun, 23 Oct 2022 22:17:57 +0000 Subject: Update .gitlab-ci.yml file with rsync options --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 41f04169..d8e2c2ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,11 @@ pages: UPDATE_DIR: "../../../public" UPDATE_HTTP: "none" CC: "clang" + tags: + - glados script: - apt-get -qq update - - apt-get install -qq -y make clang zip zlib1g-dev zlibc python + - apt-get install -qq -y make clang zip zlib1g-dev zlibc python ssh rsync - mkdir public - make updates - make news @@ -28,6 +30,11 @@ pages: # path for legacy compatibility - mkdir -p public/updates - cp -v public/*.* public/updates/ + - echo "Now deploying..." + - mkdir -p ~/.ssh + - echo "${SSH_PRIVATE_KEY}" | base64 -d | tr -d '\r' > ~/.ssh/id_rsa + - chmod -R 700 ~/.ssh + - rsync -e 'ssh -p 22 -o StrictHostKeyChecking=no' -aHv --delete $MYHOST:$FILE_LOCATION public artifacts: paths: - public -- cgit v1.2.3-70-g09d2