Geen omschrijving

.drone.yml 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. clone:
  2. git:
  3. image: plugins/git
  4. recursive: false
  5. pipeline:
  6. pull_build:
  7. image: sots:latest
  8. secrets: [ssh_private_key, ssh_known_hosts, ssh_host]
  9. commands:
  10. - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  11. - eval $(ssh-agent -s)
  12. - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  13. - mkdir -p ~/.ssh
  14. - chmod 700 ~/.ssh
  15. - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
  16. - chmod 644 ~/.ssh/known_hosts
  17. - echo "$SSH_HOST" > ~/.ssh/config
  18. - git submodule sync --recursive
  19. - git submodule update --init
  20. - mkdir -p ../tools
  21. - rm -rf ../tools/v_tools
  22. - cp -r /sots-tools/v_tools ../tools
  23. - rm -f /base/bpre0.gba
  24. - cp /bpre0.gba ./base/bpre0.gba
  25. - chmod 644 ./base/bpre0.gba
  26. - make -j4 all
  27. build_story:
  28. image: xelatex:latest
  29. commands:
  30. - cd sots-private/story && make
  31. - mv build/story.pdf build/master.pdf
  32. deploy_story:
  33. image: appleboy/drone-scp
  34. host: gitlab.karathan.at
  35. port: 22
  36. strip_components: 3
  37. target: /var/www/sots/story/
  38. source: sots-private/story/build/master.pdf
  39. secrets: [ ssh_password, ssh_username ]