summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 38a3425e..f6a4c1e0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,10 +1,58 @@
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
+ - git checkout master
+ - git submodule update --init
+ - pwd
+ - cd tools
+ - ./evolved.py
+ - cd ..
+ - git status
+ - git config user.email "numa@themanaworld.org"
+ - git config user.name "Numa"
+ - 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
+ - cd evolved
+ - git checkout master
+ - cp -v ../world/map/db/mob_db.conf db/pre-re/
+ - cp -v ../world/map/db/item_db.conf db/pre-re/
+ - git status
+ - git config user.email "numa@themanaworld.org"
+ - git config user.name "Numa"
+ - git commit -a -m "Sync with Legacy repo" --author="Numa <numa@themanaworld.org>"
+ - git push
+ only:
+ - master
+ allow_failure: true
+
pages:
stage: deploy
variables: