Files
telegram-bot-for-manipulate…/drone.yaml
ronis_0505 98870b4071
Some checks failed
continuous-integration/drone/push Build is failing
revert 54e17257d0
revert drone file configure
2025-09-25 22:08:30 +03:00

46 lines
1.0 KiB
YAML

kind: pipeline
type: docker
name: default
clone:
git:
url: https://gitea.ronis-0505.ru/ronis_0505/telegram-bot-for-manipulate-orders.git
user:
from_secret: GITEA_USER
password:
from_secret: GITEA_TOKEN
steps:
- name: install-dependencies
image: python:3.12
commands:
- pip install -r pyproject.toml
- name: build
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t myapp:${DRONE_COMMIT_SHA} .
- name: deploy
image: appleboy/ssh
settings:
host: your.server.ip
username: ronis_0505
password: 667766
script:
- docker pull myapp:${DRONE_COMMIT_SHA}
- docker stop myapp || true
- docker rm myapp || true
- docker run -d --name myapp \
--network prod_net \
-v /srv/prod/telegram_bot/photos:/app/photos/ \
myapp:${DRONE_COMMIT_SHA}
volumes:
- name: dockersock
host:
path: /var/run/docker.sock