説明なし

.drone.yml 853B

1234567891011121314151617181920212223242526272829
  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