kind: pipeline type: docker name: Deployment steps: - name: Unit tests image: amazoncorretto:11 volumes: - name: build path: ./build commands: - echo - ./gradlew :test - name: Deploy image: amazoncorretto:11 depends_on: - 'Unit tests' environment: SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE SSH_PUBLIC_KEY: from_secret: SSH_PUBLIC volumes: - name: build path: ./build commands: - chmod 777 drone/deliver.sh - drone/deliver.sh