Kromek Radangel gamma spectrometer USB HID daemon and WebUI. https://git.unino.de/pvivell/radangel
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. kind: pipeline
  2. name: clone-prepare-build-sign-release
  3. platform:
  4. os: linux
  5. arch: amd64
  6. clone:
  7. disable: false
  8. depth: 50
  9. # https://readme.drone.io/user-guide/pipeline/
  10. # https://docs.drone.io/reference/environ/
  11. # https://github.com/drone/drone
  12. steps:
  13. #http://plugins.drone.io/drone-plugins/drone-docker/
  14. #https://github.com/drone-plugins/drone-docker
  15. - name: prepare
  16. image: plugins/docker
  17. settings:
  18. registry: repo.unino.de
  19. insecure: false
  20. #auth: authtoken
  21. username:
  22. from_secret: reg-user
  23. password:
  24. from_secret: reg-pass
  25. repo: repo.unino.de/library/debian-devel
  26. #mirror: registry.hub.docker.com/library/busybox
  27. dry_run: true
  28. #bip: false
  29. #context: /drone
  30. #custom_dns:
  31. #storage_driver: aufs # aufs, overlay or vfs
  32. debug: false
  33. launch_debug: false
  34. target: production # build target from dockerfile, e.g. production, debug
  35. dockerfile: Dockerfile
  36. auto_tag: false
  37. auto_tag_suffix: linux-amd64
  38. force_tag: true
  39. tags:
  40. - latest
  41. build_args:
  42. - HTTP_PROXY: http://172.17.0.1:3142
  43. - name: build
  44. image: debian:stable-slim
  45. when:
  46. event: [ push, tag ]
  47. depends_on: [ prepare ]
  48. environment:
  49. MAKEFLAGS: -j 4
  50. BUILDDEPS: build-essential libc6-dev libhidapi-dev libssl-dev zip
  51. commands:
  52. - | # Use HTTP caching proxy for APT, avoid HTTPS pulls
  53. cat >> /etc/apt/apt.conf.d/01-proxy <<-EOF
  54. Acquire::http { Proxy "http://172.17.0.1:3142"; }
  55. Acquire::https { Proxy "https://"; };
  56. EOF
  57. - apt-get update &&
  58. apt-get -y upgrade &&
  59. apt-get -y install $BUILDDEPS
  60. - export MAKEFLAGS && make
  61. - CONTENT=${DRONE_REPO_NAME}
  62. - test -n "${DRONE_TAG}" &&
  63. RELEASE=${DRONE_REPO_NAME}-${DRONE_TAG}-bin ||
  64. RELEASE=${DRONE_REPO_NAME}-bin
  65. - mv dist $CONTENT
  66. - ls -la $CONTENT ;
  67. find $CONTENT -type f -exec md5sum '{}' \;
  68. - rm -rf release ;
  69. mkdir release
  70. - zip -rp release/$RELEASE.zip $CONTENT
  71. - tar -czvf release/$RELEASE.tar.gz $CONTENT
  72. - tar -cJvf release/$RELEASE.tar.xz $CONTENT
  73. - rm -rf $CONTENT
  74. - ls -la release ;
  75. find release -type f -exec md5sum '{}' \;
  76. - printf '\n\n\n======= BUILD FINISHED. =======\n\n\n'
  77. # http://plugins.drone.io/drone-plugins/drone-gpgsign/
  78. # https://github.com/drone-plugins/drone-gpgsign
  79. - name: sign
  80. image: plugins/gpgsign
  81. when:
  82. event: [ push, tag ]
  83. depends_on: [ build ]
  84. settings:
  85. key:
  86. from_secret: gpg-key
  87. passphrase:
  88. from_secret: gpg-pass
  89. detach_sign: true
  90. clear_sign: false
  91. files:
  92. - release/*
  93. excludes:
  94. - release/*.asc
  95. # http://plugins.drone.io/drone-plugins/drone-gitea-release/
  96. # https://github.com/drone-plugins/drone-gitea-release
  97. - name: release
  98. image: plugins/gitea-release
  99. when:
  100. event: [ tag ]
  101. # depends_on: [ sign ]
  102. depends_on: [ sign ]
  103. settings:
  104. title: Release ${DRONE_REPO_NAME}-${DRONE_TAG} # file or string
  105. note: RELEASE.md # file or string
  106. draft: false
  107. prerelease: false
  108. base_url: https://git.unino.de
  109. insecure: false
  110. api_key:
  111. from_secret: gitea-release
  112. checksum: [ md5 ] # [ md5, sha1, sha256, sha512, adler32, crc32 ]
  113. file_exists: overwrite # overwrite, skip, fail
  114. files: # wildcard * matching files with prefix supported
  115. - release/*