Обновить .woodpecker.yml
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,35 +1,5 @@
|
|||||||
variables:
|
|
||||||
IMAGE: flask-demo:latest
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
test:
|
hello:
|
||||||
image: python:3.11
|
image: alpine:3.19
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt
|
- echo ok
|
||||||
- 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user