No Description

.drone.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. - rm -f /base/bpre0.gba
  21. - cp /bpre0.gba ./base/bpre0.gba
  22. - chmod 644 ./base/bpre0.gba
  23. - make -j4 all
  24. build_story:
  25. image: xelatex:latest
  26. commands:
  27. - cd sots-private/story && make
  28. - mv build/story.pdf build/master.pdf
  29. deploy_story:
  30. image: appleboy/drone-scp
  31. host: gitlab.karathan.at
  32. port: 22
  33. strip_components: 3
  34. target: /var/www/sots/story/
  35. source: sots-private/story/build/master.pdf
  36. secrets: [ ssh_password, ssh_username ]