暫無描述

.drone.yml 791B

12345678910111213141516171819202122232425262728
  1. clone:
  2. git:
  3. image: plugins/git
  4. recursive: false
  5. pipeline:
  6. pull_build:
  7. image: sots:latest
  8. commands:
  9. - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  10. - eval $(ssh-agent -s)
  11. - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  12. - mkdir -p ~/.ssh
  13. - chmod 700 ~/.ssh
  14. - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
  15. - chmod 644 ~/.ssh/known_hosts
  16. - echo "$SSH_HOST" > ~/.ssh/config
  17. - git submodule sync --recursive
  18. - git submodule update --init
  19. - mkdir -p ../tools
  20. - rm -rf ../tools/v_tools
  21. - cp -r /sots-tools/v_tools ../tools
  22. - rm -f /base/bpre0.gba
  23. - cp /bpre0.gba ./base/bpre0.gba
  24. - chmod 644 ./base/bpre0.gba
  25. - make all