kind: pipeline type: docker name: Deployment trigger: branch: - production - dev - drone-setup steps: - name: Unit tests image: amazoncorretto:11 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 commands: - chmod 777 drone/deliver.sh - drone/deliver.sh $DRONE_BRANCH