Files
flask-demo/.woodpecker.yml
2025-09-01 12:19:56 +03:00

35 lines
598 B
YAML

variables:
IMAGE: flask-demo:latest
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps:
test:
image: python:3.11
commands:
- pip install -r requirements.txt
- pytest -q
build:
image: docker:27-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t ${IMAGE} .
deploy:
image: docker:27-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker compose up -d
when:
event:
- push
branch:
- main