frr.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/frr.yaml'
  7. steps:
  8. - name: frr
  9. environment:
  10. PROJECT_NAME: frr
  11. PROJECT_PRETTY_NAME: FRR
  12. PROJECT_VERSION: 10.2
  13. FEED_REVISION: 1
  14. CODEBERG_GIT_USERNAME:
  15. from_secret: codeberg_git_username
  16. CODEBERG_GIT_PASSWORD:
  17. from_secret: codeberg_git_password
  18. image: codeberg.org/mark22k/ci:latest
  19. pull: true
  20. commands:
  21. - GIT_BRANCH="frr-$PROJECT_VERSION"
  22. - GIT_URL="https://github.com/FRRouting/frr.git"
  23. - . ./scripts/environment.sh
  24. # Install libyang2
  25. - wget "https://ci1.netdef.org/artifact/LIBYANG-LIBYANG21/shared/build-13/Debian-12-x86_64-Packages/libyang2_2.1.128-2%7Edeb12u2_amd64.deb"
  26. - wget "https://ci1.netdef.org/artifact/LIBYANG-LIBYANG21/shared/build-13/Debian-12-x86_64-Packages/libyang2-dev_2.1.128-2%7Edeb12u2_amd64.deb"
  27. - apt-get install --yes ./libyang2_2.1.128-2~deb12u2_amd64.deb ./libyang2-dev_2.1.128-2~deb12u2_amd64.deb
  28. # Install python tools
  29. - . ./scripts/install_doc2dash.sh
  30. # Build frr docs
  31. - . ./scripts/download_from_git.sh
  32. - cd "$BASE_DIRECTORY/frr/"
  33. - ./bootstrap.sh
  34. - ./configure
  35. - make html
  36. - doc2dash doc/user/_build/html/
  37. # Build icons
  38. # old style
  39. - convert -resize 16x16 doc/user/_build/html/_static/frr-icon.svg FRR.docset/icon.png
  40. - convert -resize 32x32 doc/user/_build/html/_static/frr-icon.svg FRR.docset/icon@2x.png
  41. # new style
  42. # - magick doc/user/_build/html/_static/frr-icon.sv-resize 16x16 FRR.docset/icon.png
  43. # - magick doc/user/_build/html/_static/frr-icon.sv -resize 32x32 FRR.docset/icon@2x.png
  44. # Build tgz
  45. - tar czf "$BASE_DIRECTORY/FRR.docset.tgz" FRR.docset
  46. - cd "$FEED_DIRECTORY"
  47. - . ./scripts/create_feed.sh
  48. - . ./scripts/publish.sh