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.
32 lines
565 B
32 lines
565 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 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
|