scope workflows
This commit is contained in:
1 parent
91343f996b
commit
ceacaa5499
3 files changed
+19
-18
No files matched your search
@@ -12,13 +12,16 @@ image behind a TLS reverse proxy.
|
||||
## How deploys work
|
||||
|
||||
`.github/workflows/build-image.yml` builds and pushes the image, then SSHes in
|
||||
and runs `docker compose pull && docker compose up -d` in this directory:
|
||||
and runs `docker compose pull <service> && docker compose up -d <service>` in
|
||||
this directory:
|
||||
|
||||
- push to `develop` → image tagged `:develop` → `checkmate-staging` recreated
|
||||
- push to `demo` → image tagged `:demo` → `checkmate-demo` recreated
|
||||
- merge to `develop` → image tagged `:develop` → `checkmate-staging` recreated
|
||||
- merge to `master` → image tagged `:master` → `checkmate-demo` (prod) recreated
|
||||
|
||||
The host keeps a git checkout of this repo; the deploy does `git pull` first so
|
||||
compose/gateway changes land with the code.
|
||||
The host keeps a git checkout of this repo (on `develop`); the deploy does
|
||||
`git pull` first so compose changes land with the code. Note the deploy only
|
||||
recreates the checkmate service — changes to `gateway/nginx.conf` or the mongo
|
||||
services need a manual `docker compose up -d` / gateway restart on the host.
|
||||
|
||||
## Host-local files (not committed)
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ services:
|
||||
- /etc/letsencrypt:/etc/nginx/ssl:ro
|
||||
- ./gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
|
||||
# Demo: demo.checkmate.so -----
|
||||
# Prod: demo.checkmate.so -----
|
||||
checkmate-demo:
|
||||
image: ghcr.io/bluewave-labs/checkmate:demo
|
||||
image: ghcr.io/bluewave-labs/checkmate:master
|
||||
container_name: checkmate-demo
|
||||
restart: always
|
||||
env_file:
|
||||
|
||||
Reference in new issue
Block a user