Нет описания

.gitlab-ci.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. before_script:
  2. - echo "executing before script"
  3. - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  4. ##
  5. ## Run ssh-agent (inside the build environment)
  6. ##
  7. - eval $(ssh-agent -s)
  8. ##
  9. ## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
  10. ## We're using tr to fix line endings which makes ed25519 keys work
  11. ## without extra base64 encoding.
  12. ## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556
  13. ##
  14. - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  15. ##
  16. ## Create the SSH directory and give it the right permissions
  17. ##
  18. - mkdir -p ~/.ssh
  19. - chmod 700 ~/.ssh
  20. - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
  21. - chmod 644 ~/.ssh/known_hosts
  22. - echo "$SSH_HOST" > ~/.ssh/config
  23. - chmod 644 ~/.ssh/config
  24. - git submodule sync --recursive
  25. - git submodule update --init
  26. ## Move pymap from the docker image to the tools folder
  27. - mkdir -p ../tools
  28. - mv /sots-tools/v_tools ../tools
  29. stages:
  30. - build
  31. build-sots:
  32. stage: build
  33. only:
  34. - tags
  35. - web
  36. - triggers
  37. script:
  38. - echo "Building Pokémon SotS"
  39. - make -j4 all