Initial Flask demo

This commit is contained in:
Galyaviev Ruslan
2025-09-01 10:54:35 +03:00
commit 646f36716d
13 changed files with 125 additions and 0 deletions

33
.woodpecker.yml Normal file
View File

@@ -0,0 +1,33 @@
variables:
IMAGE: flask-demo:latest
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
pipeline:
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