Compare commits
7 Commits
2762f1d257
...
deploy
| Author | SHA1 | Date | |
|---|---|---|---|
| ff615e2b67 | |||
| 1a93336d30 | |||
| 17a1e4bb36 | |||
| d5b045984f | |||
| 0faff426a7 | |||
| e3a15dad50 | |||
| 970a0e6fd4 |
@@ -1,6 +1,3 @@
|
|||||||
when:
|
|
||||||
- branch: [master, deploy]
|
|
||||||
event: [push, manual]
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
@@ -13,7 +10,8 @@ steps:
|
|||||||
ENV_FILE:
|
ENV_FILE:
|
||||||
from_secret: ENV_FILE
|
from_secret: ENV_FILE
|
||||||
when:
|
when:
|
||||||
- event: [push, manual]
|
- branch: [deploy, master]
|
||||||
|
event: [push, manual]
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
commands:
|
commands:
|
||||||
@@ -24,6 +22,7 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
ENV_FILE:
|
ENV_FILE:
|
||||||
from_secret: ENV_FILE
|
from_secret: ENV_FILE
|
||||||
depends_on: [build]
|
depends_on: build
|
||||||
when:
|
when:
|
||||||
- event: manual
|
- branch: deploy
|
||||||
|
event: manual
|
||||||
@@ -24,7 +24,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:${POSTGRES_PORT}:5432"
|
- "127.0.0.1:${POSTGRES_PORT}:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "pg_isready -d $${POSTGRES_DB:-postgres} -U $${POSTGRES_USER:-postgres}"]
|
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
@@ -38,4 +38,4 @@ networks:
|
|||||||
bot_network:
|
bot_network:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
Reference in New Issue
Block a user