frr.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.1
  13. FEED_REVISION: 1
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - GIT_BRANCH="frr-$PROJECT_VERSION"
  18. - GIT_URL="https://github.com/FRRouting/frr.git"
  19. - . ./scripts/environment.sh
  20. # Install libyang2
  21. - wget "https://ci1.netdef.org/artifact/LIBYANG-LIBYANG21/shared/build-13/Debian-12-x86_64-Packages/libyang2_2.1.128-2%7Edeb12u2_amd64.deb"
  22. - 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"
  23. - apt-get install --yes ./libyang2_2.1.128-2~deb12u2_amd64.deb ./libyang2-dev_2.1.128-2~deb12u2_amd64.deb
  24. # Install python tools
  25. - . ./scripts/install_doc2dash.sh
  26. # Build frr docs
  27. - . ./scripts/download_from_git.sh
  28. - cd "$BASE_DIRECTORY/frr/"
  29. - ./bootstrap.sh
  30. - ./configure
  31. - make html
  32. - doc2dash doc/user/_build/html/
  33. # Build icons
  34. # old style
  35. - convert -resize 16x16 doc/user/_build/html/_static/frr-icon.svg FRR.docset/icon.png
  36. - convert -resize 32x32 doc/user/_build/html/_static/frr-icon.svg FRR.docset/icon@2x.png
  37. # new style
  38. # - magick doc/user/_build/html/_static/frr-icon.sv-resize 16x16 FRR.docset/icon.png
  39. # - magick doc/user/_build/html/_static/frr-icon.sv -resize 32x32 FRR.docset/icon@2x.png
  40. # Build tgz
  41. - tar czf "$BASE_DIRECTORY/FRR.docset.tgz" FRR.docset
  42. - cd "$FEED_DIRECTORY"
  43. - . ./scripts/create_feed.sh
  44. - . ./scripts/publish.sh
  45. secrets:
  46. - codeberg_git_username
  47. - codeberg_git_password