You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
531 B
29 lines
531 B
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: 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_SANCY
|
|
secrets:
|
|
- source: DEPLOY_KEY_SANCY
|
|
rm: false |