Keine Beschreibung

.gitlab-ci.yml 992B

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