stunnel.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. when:
  2. - event: manual
  3. branch: main
  4. - event: push
  5. branch: main
  6. path: '.woodpecker/stunnel.yaml'
  7. steps:
  8. - name: stunnel
  9. environment:
  10. PROJECT_NAME: stunnel
  11. PROJECT_PRETTY_NAME: stunnel
  12. PROJECT_VERSION: 5.73
  13. FEED_REVISION: 1
  14. image: codeberg.org/mark22k/ci:latest
  15. pull: true
  16. commands:
  17. - TARBALL_URL="https://www.stunnel.org/downloads/stunnel-$PROJECT_VERSION.tar.gz"
  18. - . ./scripts/environment.sh
  19. - . ./scripts/install_dashing.sh
  20. - . ./scripts/download_tarball.sh
  21. - . ./scripts/prepare_docs_directory.sh
  22. - cd "$BASE_DIRECTORY/stunnel-$PROJECT_VERSION"
  23. - ./configure
  24. - cd doc
  25. - make
  26. - cp "stunnel.html" "$BASE_DIRECTORY/docs/"
  27. - cp "stunnel.pl.html" "$BASE_DIRECTORY/docs/"
  28. - |
  29. cat <<EOF > "$DOCS_DIRECTORY/dashing.json"
  30. {
  31. "name": "stunnel",
  32. "package": "stunnel",
  33. "index": "stunnel.html",
  34. "selectors": {
  35. "title": "Package",
  36. "dl dt b": "Option"
  37. },
  38. "allowJS": false
  39. }
  40. EOF
  41. - cd "$FEED_DIRECTORY"
  42. - . ./scripts/build_dashing.sh
  43. - . ./scripts/create_docs_tarball.sh
  44. - . ./scripts/create_feed.sh
  45. - . ./scripts/publish.sh
  46. secrets:
  47. - codeberg_git_username
  48. - codeberg_git_password