This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: docker:latest
|
||||||
|
commands:
|
||||||
|
- docker build -t test .
|
||||||
|
- name: deploy
|
||||||
|
image: docker:latest
|
||||||
|
commands:
|
||||||
|
- sh run.sh
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.13.1-slim
|
FROM python:3.13.1-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- bot_network
|
- bot_network
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
- db
|
||||||
condition: service_healthy
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:alpine
|
image: postgres:17-alpine
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
|||||||
Reference in New Issue
Block a user