kind: pipeline type: docker name: Deployment trigger: branch: - production - dev steps: - name: 'Unit Tests' image: ubuntu:latest commands: - apt update && apt install openjdk-11-jdk -y - ./gradlew :test - name: deploy to server image: ubuntu:latest depends_on: - 'Unit Tests' environment: SSH_PRIVATE_KEY: from_secret: ??? SSH_PUBLIC_KEY: from_secret: ??? USER: from_secret: ??? IP: from_secret: ??? commands: - drone/deliver.sh $DRONE_BRANCH