feat: update workflows

* build images with automatic tags
* separate staging and production deployment
* reuse workflows
This commit is contained in:
wancat committed 2023-11-18 18:05:42 +08:00
1 parent 81581c4635
commit 7d25c7efaa
8 files changed
+197 -118

No files matched your search

+5 -4
View File
@@ -1,7 +1,7 @@
version: '3'
services:
app:
image: lancatlin/linux-odyssey:app
image: linuxodyssey/frontend
depends_on:
- backend
restart: always
@@ -13,8 +13,9 @@ services:
internal:
ports:
- 8080:80
backend:
image: lancatlin/linux-odyssey:backend
image: linuxodyssey/backend
depends_on:
- db
restart: always
@@ -36,7 +37,7 @@ services:
- TRUSTED_PROXIES=${TRUSTED_PROXIES}
analytics:
image: lancatlin/linux-odyssey:analytics
image: linuxodyssey/analytics
build:
context: .
dockerfile: packages/analytics/Dockerfile
@@ -76,7 +77,7 @@ services:
- BUG_REPORT_URL=${BUG_REPORT_URL}
base:
image: lancatlin/linux-odyssey:base
image: linuxodyssey/base
build:
context: .
dockerfile: ./quests/Dockerfile