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.
46 lines
808 B
46 lines
808 B
kind: pipeline
|
|
type: docker
|
|
name: "Server CI"
|
|
|
|
|
|
steps:
|
|
- name: Unit tests
|
|
image: override6/tbasket-backend:latest
|
|
volumes:
|
|
- name: build
|
|
path: ./build
|
|
commands:
|
|
- ./mill tests.test
|
|
|
|
# - name: Deploy
|
|
# image: override6/tbasket-backend:latest
|
|
# depends_on:
|
|
# - 'Unit tests'
|
|
# environment:
|
|
# SSH_PRIVATE_KEY:
|
|
# from_secret: SSH_PRIVATE
|
|
# PASSWD:
|
|
# from_secret: PASSWD
|
|
# volumes:
|
|
# - name: build
|
|
# path: ./build
|
|
# commands:
|
|
# - ./mill Core.compile
|
|
# - chmod 777 drone/deliver.sh
|
|
# - drone/deliver.sh
|
|
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: "Deploy docker images"
|
|
|
|
steps:
|
|
- name: Build and push
|
|
image: docker:latest
|
|
commands:
|
|
- chmod +x drone/image-deploy.sh
|
|
- drone/image-deploy.sh
|
|
|
|
|