kind: pipeline type: docker name: Pipeline trigger: event: include: - push - pull_request - custom steps: - name: compile image: mcr.microsoft.com/dotnet/sdk:8.0-alpine environment: CI_WORKSPACE: "/drone/src" commands: - dotnet build volumes: - name: dockersock path: /var/run - name: test image: quay.io/testcontainers/dind-drone-plugin environment: CI_WORKSPACE: "/drone/src" settings: build_image: mcr.microsoft.com/dotnet/sdk:8.0-alpine cmd: - dotnet test --no-build volumes: - name: dockersock path: /var/run depends_on: - compile - name: Telegram notification image: appleboy/drone-telegram settings: token: from_secret: telegram_token to: from_secret: telegram_user_id when: status: - success - failure depends_on: - compile - test - docker build and push - deploy to test - deploy to prod services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock path: /var/run volumes: - name: dockersock temp: { }