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.
39 lines
908 B
39 lines
908 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: 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 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 |