Files
quiz_test/.drone.yml
Andrey K. Choi 414fda7842
Some checks failed
continuous-integration/drone/pr Build is failing
pipeline rollback
2025-09-11 12:07:32 +09:00

44 lines
917 B
YAML

kind: pipeline
type: docker
name: multibot-ci
trigger:
branch:
- main
- develop
- "feature/*"
event:
- push
- pull_request
steps:
- name: install-deps
image: python:3.11-slim
commands:
- pip install --upgrade pip
- pip install -r requirements.txt
- name: lint
image: python:3.11-slim
commands:
- pip install flake8
- flake8 .
- name: docker-build
image: plugins/docker:27
settings:
repo: ${DRONE_REPO} # или ${DRONE_REPO_NAMESPACE}/${DRONE_REPO_NAME}
tags:
- latest
- ${DRONE_COMMIT_SHA}
dockerfile: Dockerfile
# Если не хочешь пушить — добавь:
# dry_run: true
- name: docker-test
image: docker:27-cli
commands:
- docker run --rm ${DRONE_REPO_NAME}:${DRONE_COMMIT_SHA} python -c "print('image ok')"
depends_on:
- docker-build