scapy.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/scapy.yaml'
  7. steps:
  8. - name: scapy
  9. environment:
  10. PROJECT_NAME: scapy
  11. PROJECT_PRETTY_NAME: Scapy
  12. PROJECT_VERSION: 2.5.0
  13. FEED_REVISION: 1
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="v$PROJECT_VERSION"
  18. - GIT_URL="https://github.com/secdev/scapy.git"
  19. - . ./scripts/environment.sh
  20. - pipx install tox
  21. - . ./scripts/install_doc2dash.sh
  22. # Build scapy docs
  23. - . ./scripts/download_from_git.sh
  24. - cd "$BASE_DIRECTORY/scapy/doc/scapy/"
  25. - tox -e docs
  26. - doc2dash _build/html
  27. # Build icons
  28. # old style
  29. - convert -resize 16x16 ../scapy_logo.png Scapy.docset/icon.png
  30. - convert -resize 32x32 ../scapy_logo.png Scapy.docset/icon@2x.png
  31. # new style
  32. # - magick ../scapy_logo.png -resize 16x16 Scapy.docset/icon.png
  33. # - magick ../scapy_logo.png -resize 32x32 Scapy.docset/icon@2x.png
  34. # Build tgz
  35. - tar czf "$BASE_DIRECTORY/Scapy.docset.tgz" Scapy.docset
  36. - cd "$FEED_DIRECTORY"
  37. - . ./scripts/create_feed.sh
  38. - . ./scripts/publish.sh
  39. secrets:
  40. - codeberg_git_username
  41. - codeberg_git_password