Настроил Drone CI/CD #1
10
.drone.yml
10
.drone.yml
@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
@ -10,8 +8,12 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
commands:
|
commands:
|
||||||
- docker build .
|
- docker-compose -p Crisp_Telegram_bot build
|
||||||
|
|
||||||
- name: run
|
- name: run
|
||||||
commands:
|
commands:
|
||||||
- docker-compose up --build -d
|
- docker-compose -p Crisp_Telegram_bot up -d
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
crispbot:
|
bot:
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
- /root/config.yml:/app/config.yml
|
- /root/config.yml:/app/config.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user