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.
30 lines
567 B
30 lines
567 B
kind: pipeline
|
|
type: docker
|
|
name: Deployment
|
|
|
|
|
|
steps:
|
|
- name: Unit tests
|
|
image: override6/tbasket-backend:latest
|
|
volumes:
|
|
- name: build
|
|
path: ./build
|
|
commands:
|
|
- ./gradlew :test
|
|
|
|
- name: Deploy
|
|
image: override6/tbasket-backend:latest
|
|
depends_on:
|
|
- 'Unit tests'
|
|
environment:
|
|
SSH_PRIVATE_KEY:
|
|
from_secret: SSH_PRIVATE
|
|
SSH_PUBLIC_KEY:
|
|
from_secret: SSH_PUBLIC
|
|
volumes:
|
|
- name: build
|
|
path: ./build
|
|
commands:
|
|
- chmod 777 drone/deliver.sh
|
|
- drone/deliver.sh
|