Files
seoulmate_bot_v1/.drone.yml
Andrey K. Choi b282c44e7c
Some checks reported errors
continuous-integration/drone/push Build encountered an error
pipeline fix
2025-08-12 21:14:26 +09:00

41 lines
831 B
YAML

kind: pipeline
type: docker
name: build_test_local
steps:
- name: build
image: docker:27
volumes:
- name: dockersock
path: /var/run
commands:
- docker compose build --no-cache
- name: migrate
image: docker:27
volumes:
- name: dockersock
path: /var/run
commands:
- docker compose up -d db
- |
for i in $(seq 1 60); do
if docker compose ps db | grep -q "(healthy)"; then
echo "DB healthy"; break
fi
echo "Waiting DB... $i"
sleep 2
done
- docker compose run --rm bot alembic upgrade head
- name: lint
image: python:3.12-slim
commands:
- pip install ruff==0.5.7
- ruff check services/bot
volumes:
- name: dockersock
host:
path: /var/run/docker.sock