This commit is contained in:
21
drone.yaml
21
drone.yaml
@@ -1,12 +1,15 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: first_run
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install-dependencies
|
- name: clone
|
||||||
image: python:3.12
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- pip install -r pyproject.toml
|
- git clone https://git.ronis-0505.ru/ronis_0505/telegram-bot-for-manipulate-orders.git .
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
@@ -17,9 +20,15 @@ steps:
|
|||||||
- docker build -t myapp:${DRONE_COMMIT_SHA} .
|
- docker build -t myapp:${DRONE_COMMIT_SHA} .
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/ssh
|
image: alpine
|
||||||
|
environment:
|
||||||
|
ENV_CONTENT:
|
||||||
|
from_secret: DOT_ENV_CONTENT
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache openssh
|
||||||
|
- echo "$ENV_CONTENT" > .env
|
||||||
settings:
|
settings:
|
||||||
host: your.server.ip
|
host: localhost
|
||||||
username: ronis_0505
|
username: ronis_0505
|
||||||
password: 667766
|
password: 667766
|
||||||
script:
|
script:
|
||||||
|
|||||||
Reference in New Issue
Block a user