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