diff options
author | HoraK-FDF <horak-fdf@web.de> | 2022-11-11 18:25:19 +0000 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2022-11-11 18:25:19 +0000 |
commit | f6256f240c2fabe5d26efa7e88e69c2de19a6786 (patch) | |
tree | e832fa79f8fe9a78085e0b14b35f2bac5afe3006 /.gitlab-ci.yml | |
parent | 9ad304f22b698d69e7d41cc4cdfe53bf16d5d552 (diff) | |
parent | c62e768cc51f9607b85642c78d32cbcbc519f880 (diff) | |
download | serverdata-magic.tar.gz serverdata-magic.tar.bz2 serverdata-magic.tar.xz serverdata-magic.zip |
Merge branch 'master' into 'magic'magic
# Conflicts:
# world/map/db/const.txt
# world/map/npc/magic/event-summon-managuardian.txt
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 48 |
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: |