change port
This commit is contained in:
@@ -1,22 +1,22 @@
|
|||||||
steps:
|
steps:
|
||||||
test:
|
test:
|
||||||
image: python:3.11
|
image: "python:3.11"
|
||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pytest -q
|
- pytest -q
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: docker:27-cli
|
image: "docker:27-cli"
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
IMAGE: flask-demo:latest
|
IMAGE: "flask-demo:latest"
|
||||||
commands:
|
commands:
|
||||||
- docker build -t $IMAGE .
|
- docker build -t "$IMAGE" .
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: docker:27-cli
|
image: "docker:27-cli"
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@@ -28,7 +28,6 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
# объявление хостового тома для монтирования docker.sock
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
|
|||||||
Reference in New Issue
Block a user