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 image: ubuntu:latest commands: - apt update && apt install openjdk-11-jdk -y - ./gradlew :shadowJar 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