summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-10 19:07:31 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-10 19:07:31 -0300
commit25de219350855790c91f3a1600371704f456b95c (patch)
tree6de82f5949665375039e4c3ee12e89197ae06697
parent76d64d3d03eb800662fdc3aa2f8e208745354c6b (diff)
downloadserverdata-25de219350855790c91f3a1600371704f456b95c.tar.gz
serverdata-25de219350855790c91f3a1600371704f456b95c.tar.bz2
serverdata-25de219350855790c91f3a1600371704f456b95c.tar.xz
serverdata-25de219350855790c91f3a1600371704f456b95c.zip
Try out a more explosive CI
-rw-r--r--.gitlab-ci.yml35
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: