.gitlab-ci.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. default:
  2. image: "registry.gitlab.com/xenia-group/foxbuild:main"
  3. before_script:
  4. - nohup tailscaled &
  5. - tailscale up --authkey $TS_KEY
  6. - mkdir -p /var/tmp/catalyst/packages
  7. - mkdir -p /var/foxbuild/output
  8. - mkdir -p /var/tmp/catalyst/builds/default
  9. - sshfs -o "StrictHostKeyChecking=accept-new" root@100.80.175.68:/root/xenia/packages /var/tmp/catalyst/packages
  10. - sshfs -o "StrictHostKeyChecking=accept-new" root@100.80.175.68:/root/xenia/output /var/foxbuild/output
  11. - sshfs -o "StrictHostKeyChecking=accept-new" root@100.80.175.68:/root/xenia/stage3 /var/tmp/catalyst/builds/default
  12. workflow:
  13. rules:
  14. - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  15. - if: $CI_COMMIT_TAG
  16. - if: $CI_COMMIT_BRANCH == 'unstable'
  17. - if: $CI_COMMIT_BRANCH == 'main'
  18. stages:
  19. - build
  20. build-xenia:
  21. tags:
  22. - catalyst
  23. stage: build
  24. script:
  25. - wget https://gitlab.com/xenia-group/foxbuild/-/raw/main/build_all.toml?ref_type=heads -O build.toml
  26. - if [ "$CI_COMMIT_BRANCH" == "" ]; then BRANCH="$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"; else BRANCH="$CI_COMMIT_BRANCH"; fi
  27. - sed -i "s/unstable/$BRANCH/g" build.toml
  28. - sed -i "s@https://gitlab.com/xenia-group/catalyst.git@$CI_PROJECT_URL@g" build.toml
  29. - foxbuild -ic build.toml