From 25de219350855790c91f3a1600371704f456b95c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 10 Nov 2022 19:07:31 -0300 Subject: Try out a more explosive CI --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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 " + - 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 " + - git push + only: + - master + pages: stage: deploy variables: -- cgit v1.2.3-60-g2f50