This commit is contained in:
21
drone.yaml
21
drone.yaml
@@ -1,12 +1,15 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
name: first_run
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
image: python:3.12
|
||||
- name: clone
|
||||
image: alpine/git
|
||||
commands:
|
||||
- pip install -r pyproject.toml
|
||||
- git clone https://git.ronis-0505.ru/ronis_0505/telegram-bot-for-manipulate-orders.git .
|
||||
|
||||
- name: build
|
||||
image: docker:dind
|
||||
@@ -17,9 +20,15 @@ steps:
|
||||
- docker build -t myapp:${DRONE_COMMIT_SHA} .
|
||||
|
||||
- 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:
|
||||
host: your.server.ip
|
||||
host: localhost
|
||||
username: ronis_0505
|
||||
password: 667766
|
||||
script:
|
||||
|
||||
Reference in New Issue
Block a user