endpoint modifications
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0f71299ebd
commit
17a6e7aa48
@ -1,31 +0,0 @@
|
|||||||
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
|
|
@ -0,0 +1,29 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Deployment
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- production
|
||||||
|
- dev
|
||||||
|
- drone-setup
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Unit tests
|
||||||
|
image: amazoncorretto:11
|
||||||
|
commands:
|
||||||
|
- echo
|
||||||
|
- ./gradlew :test
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
image: amazoncorretto:11
|
||||||
|
depends_on:
|
||||||
|
- 'Unit tests'
|
||||||
|
environment:
|
||||||
|
SSH_PRIVATE_KEY:
|
||||||
|
from_secret: SSH_PRIVATE
|
||||||
|
SSH_PUBLIC_KEY:
|
||||||
|
from_secret: SSH_PUBLIC
|
||||||
|
commands:
|
||||||
|
- chmod 777 drone/deliver.sh
|
||||||
|
- drone/deliver.sh $DRONE_BRANCH
|
@ -1 +1 @@
|
|||||||
endpoint.url=localhost:48485
|
endpoint.url=48485
|
Reference in new issue