change port
This commit is contained in:
@@ -4,6 +4,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pytest -q
|
- pytest -q
|
||||||
|
when:
|
||||||
|
event: [push, manual]
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: "docker:27-cli"
|
image: "docker:27-cli"
|
||||||
@@ -14,6 +16,8 @@ steps:
|
|||||||
IMAGE: "flask-demo:latest"
|
IMAGE: "flask-demo:latest"
|
||||||
commands:
|
commands:
|
||||||
- docker build -t "$IMAGE" .
|
- docker build -t "$IMAGE" .
|
||||||
|
when:
|
||||||
|
event: [push, manual]
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: "docker:27-cli"
|
image: "docker:27-cli"
|
||||||
@@ -23,7 +27,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- docker compose up -d
|
- docker compose up -d
|
||||||
when:
|
when:
|
||||||
event: [push]
|
event: [push, manual]
|
||||||
branch: [main]
|
branch: [main]
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user