summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-23 22:17:57 +0000
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-23 22:17:57 +0000
commit237cb98f1d5dcd2529460bf4a470a0d28d0c6d3f (patch)
treee10383b74dac67fa2aaf83a20075b92f98a23501 /.gitlab-ci.yml
parentb236e6676bfefea5599ac64a51da31d946e0a819 (diff)
downloadserverdata-237cb98f1d5dcd2529460bf4a470a0d28d0c6d3f.tar.gz
serverdata-237cb98f1d5dcd2529460bf4a470a0d28d0c6d3f.tar.bz2
serverdata-237cb98f1d5dcd2529460bf4a470a0d28d0c6d3f.tar.xz
serverdata-237cb98f1d5dcd2529460bf4a470a0d28d0c6d3f.zip
Update .gitlab-ci.yml file with rsync options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 8 insertions, 1 deletions
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