change port
This commit is contained in:
@@ -4,3 +4,31 @@ steps:
|
||||
commands:
|
||||
- pip install -r requirements.txt
|
||||
- pytest -q
|
||||
|
||||
build:
|
||||
image: docker:27-cli
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
environment:
|
||||
IMAGE: "flask-demo:latest"
|
||||
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
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user