diff options
-rw-r--r-- | .gitlab-ci.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 38a3425e..a27382aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,45 @@ stages: +- sync - deploy image: ubuntu:18.04 before_script: - uname -a +legacy: + stage: sync + tags: + - glados + script: + - apt-get -qq update + - apt-get install -qq -y make zip zlib1g-dev zlibc python ssh rsync python3 git + - git config --global credential.helper store + - echo "https://numa:$SYNC_KEY@git.themanaworld.org" > ~/.git-credentials + - ./tools/evolved.py + - git commit -a -m "Regenerate databases" --author="Numa <numa@themanaworld.org>" + - git push # may cause a CI loop >.< + only: + - master + allow_failure: true + +evolved: + stage: deploy + tags: + - glados + script: + - apt-get -qq update + - apt-get install -qq -y make zip zlib1g-dev zlibc python ssh rsync python3 git + - git config --global credential.helper store + - echo "https://numa:$SYNC_KEY@git.themanaworld.org" > ~/.git-credentials + - git clone https://git.themanaworld.org/evolved/serverdata.git evolved + - cp -v world/map/db/mob_db.conf evolved/db/pre-re/ + - cp -v world/map/db/item_db.conf evolved/db/pre-re/ + - cd evolved + - git commit -a -m "Sync with Legacy repo" --author="Numa <numa@themanaworld.org>" + - git push + only: + - master + pages: stage: deploy variables: |