mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
Update deployment (#58)
* Update ci_cd.yml Remove deployment scripts, moved to authorized_keys instead. * Update docker-compose.prod.yml to always restart
This commit is contained in:
1 parent
4c2f3f5397
commit
10e9d89349
2 files changed
+3
-5
No files matched your search
@@ -119,7 +119,3 @@ jobs:
|
|||||||
port: ${{ secrets.SERVER_PORT }}
|
port: ${{ secrets.SERVER_PORT }}
|
||||||
username: ${{ secrets.SERVER_USER }}
|
username: ${{ secrets.SERVER_USER }}
|
||||||
key: ${{ secrets.SERVER_SSH_KEY }}
|
key: ${{ secrets.SERVER_SSH_KEY }}
|
||||||
script: |
|
|
||||||
cd ${{ secrets.SERVER_PATH }}
|
|
||||||
docker compose -f docker-compose.prod.yml pull
|
|
||||||
docker compose -f docker-compose.prod.yml up -d
|
|
||||||
@@ -4,6 +4,7 @@ services:
|
|||||||
image: lancatlin/linux-odyssey:app
|
image: lancatlin/linux-odyssey:app
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: app/Dockerfile
|
dockerfile: app/Dockerfile
|
||||||
@@ -16,7 +17,7 @@ services:
|
|||||||
image: lancatlin/linux-odyssey:backend
|
image: lancatlin/linux-odyssey:backend
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
restart: on-failure
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: server/Dockerfile
|
dockerfile: server/Dockerfile
|
||||||
@@ -40,6 +41,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: packages/analytics/Dockerfile
|
dockerfile: packages/analytics/Dockerfile
|
||||||
target: prod
|
target: prod
|
||||||
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in new issue
Block a user