.drone.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: build
  5. image: alpine:3.15.0
  6. environment:
  7. SSH_KEY:
  8. from_secret: SSH_KEY
  9. commands:
  10. - export SHELL=/bin/bash # hack custom shell
  11. - apk update
  12. - apk add musl-locales openjdk11 make py3-virtualenv git openssh
  13. - export LANG=es_ES.UTF-8 LANGUAGE=es_ES
  14. #- sh devscripts/comments.bash # import comments CL
  15. - virtualenv -p python3 venv
  16. - source venv/bin/activate
  17. - pip install -r requirements.txt
  18. - (cd cl-theme/ && make compile)
  19. - cp -v Makefile.example Makefile
  20. - make validate
  21. #- make publish
  22. #- make onion_publish
  23. #- name: deploy-tux
  24. # image: drillster/drone-rsync
  25. # settings:
  26. # hosts:
  27. # from_secret: TUX_SSH_HOST
  28. # port:
  29. # from_secret: TUX_SSH_PORT
  30. # key:
  31. # from_secret: SSH_KEY
  32. # user:
  33. # from_secret: TUX_SSH_USER
  34. # source: ./output_tux/*
  35. # target:
  36. # from_secret: TUX_SSH_TARGET_DIR
  37. # recursive: true
  38. # delete: true
  39. # when:
  40. # branch: [master]
  41. # event: [push]
  42. #- name: deploy-main
  43. # image: drillster/drone-rsync
  44. # settings:
  45. # hosts:
  46. # from_secret: SSH_HOST
  47. # port:
  48. # from_secret: SSH_PORT
  49. # key:
  50. # from_secret: SSH_KEY
  51. # user:
  52. # from_secret: SSH_USER
  53. # source: ./output/*
  54. # exclude:
  55. # - ./output/.htaccess
  56. # target:
  57. # from_secret: SSH_TARGET_DIR
  58. # recursive: true
  59. # delete: true
  60. # when:
  61. # branch: [master]
  62. # event: [push]