diff --git a/.drone.yml b/.drone.yml index 20ecef9..9c0df36 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,25 +15,15 @@ steps: # - ./gradlew :test - name: deploy - image: ubuntu:latest - environment: - SSH: - from_secret: DEPLOY_KEY_SANCY - commands: - - apt update && apt install openjdk-11-jdk -y && apt install openssh-client -y - - ./gradlew :shadowJar - - mkdir ~/.ssh - - echo $SSH > ~/.ssh/id_rsa - - scp -v build/libs/server-all.jar lafourcade@sancy.iut.uca.fr:public_html/TBasket - - # 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_SANCY - # secrets: - # - source: DEPLOY_KEY_SANCY - # rm: false \ No newline at end of file + image: appleboy/drone-scp + settings: + port: 22 + host: sancy.iut.uca.fr + username: lafourcade + target: public_html/TBasket + source: settings.gradle + key: + from_secret: DEPLOY_KEY_SANCY + secrets: + - source: DEPLOY_KEY_SANCY + rm: false \ No newline at end of file