From 58ca3b2a002f35c1597e8a3542c2cf03a6fde4fd Mon Sep 17 00:00:00 2001 From: Pascal LAFOURCADE Date: Fri, 25 Nov 2022 17:55:53 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 80d7887..73bdfed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,18 +14,17 @@ steps: - 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 + +- name: deploy + image: appleboy/drone-scp + settings: + port: 22 + host: sancy.iut.uca.fr + username: lafourcade + target: public_html/TBasket + source: build/libs/server-all.jar + key: + from_secret: DEPLOY_KEY + secrets: + - source: DEPLOY_KEY + rm: false \ No newline at end of file