.drone.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. kind: pipeline
  2. name: python-3-8-alpine-3-13
  3. services:
  4. - name: postgresql
  5. image: postgres:13.1-alpine
  6. environment:
  7. POSTGRES_PASSWORD: test
  8. POSTGRES_DB: test
  9. - name: mysql
  10. image: mariadb:10.5
  11. environment:
  12. MYSQL_ROOT_PASSWORD: test
  13. MYSQL_DATABASE: test
  14. - name: mongodb
  15. image: mongo:5.0.5
  16. environment:
  17. MONGO_INITDB_ROOT_USERNAME: root
  18. MONGO_INITDB_ROOT_PASSWORD: test
  19. clone:
  20. skip_verify: true
  21. steps:
  22. - name: build
  23. image: alpine:3.13
  24. environment:
  25. TEST_CONTAINER: true
  26. pull: always
  27. commands:
  28. - scripts/run-full-tests
  29. ---
  30. kind: pipeline
  31. name: documentation
  32. type: exec
  33. platform:
  34. os: linux
  35. arch: amd64
  36. clone:
  37. skip_verify: true
  38. steps:
  39. - name: build
  40. environment:
  41. USERNAME:
  42. from_secret: docker_username
  43. PASSWORD:
  44. from_secret: docker_password
  45. IMAGE_NAME: projects.torsion.org/borgmatic-collective/borgmatic:docs
  46. commands:
  47. - podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org
  48. - podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" .
  49. - podman push "$IMAGE_NAME"
  50. trigger:
  51. repo:
  52. - borgmatic-collective/borgmatic
  53. branch:
  54. - main
  55. event:
  56. - push