Обновить .woodpecker.yml

This commit is contained in:
2025-09-01 09:27:22 +00:00
parent 079fe98467
commit b034546245

View File

@@ -1,5 +1,35 @@
variables:
IMAGE: flask-demo:latest
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps: steps:
hello: test:
image: alpine:3.19 image: python:3.11
commands: commands:
- echo ok - 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