Skip to content

Commit

Permalink
Add ligretto-bot deploy (#425)
Browse files Browse the repository at this point in the history
* add ligretto-bot deploy

* update port
  • Loading branch information
bondiano authored Sep 16, 2023
1 parent 7ea145c commit c925dea
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
28 changes: 26 additions & 2 deletions .deploy/ligretto.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ services:
- LIGRETTO_GAMEPLAY_CAS_KEY_PATH=/ligretto-gameplay-backend/key.pem
- LIGRETTO_CORE_URL=http://ligretto-core-backend:3333/api
- LIGRETTO_GAMEPLAY_SOCKET_PORT=3005
labels:
prometheus-job: ligretto-gameplay-backend
networks:
- ligretto_net
- traefik-public
- metrics-targets
deploy:
labels:
- "prometheus-job=ligretto-gameplay-backend"
- "traefik.enable=true"
- "traefik.http.routers.ligretto-gameplay-backend.rule=Host(`api.ligretto.app`)"
- "traefik.http.routers.ligretto-gameplay-backend.entrypoints=web"
Expand Down Expand Up @@ -78,6 +77,31 @@ services:
- ligretto_net
volumes:
- ligretto-core-pg:/var/lib/postgresql/data
ligretto-bot-clj:
image: ghcr.io/memebattle/ligretto-bot-clj:latest
networks:
- ligretto_net
- traefik-public
- metrics-targets
environment:
- APP_PORT=4201
- APP_HOST=0.0.0.0
deploy:
labels:
- "prometheus-job=ligretto-bot-clj"
- "traefik.enable=true"
- "traefik.http.routers.ligretto-bot-clj.rule=Host(`bots.ligretto.app`)"
- "traefik.http.routers.ligretto-bot-clj.entrypoints=web"
- "traefik.http.services.ligretto-bot-clj.loadbalancer.server.port=4201"
- "traefik.http.services.ligretto-bot-clj.loadbalancer.passhostheader=true"
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3

secrets:
LIGRETTO_CAS_KEY:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ligretto-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: 'Ligretto build, push and deploy'

on:
workflow_dispatch:
branches:
- master
push:
branches: [ master ]
branches:
- master
- update-deploy
paths-ignore:
- 'apps/gamehub-client/**'
- 'apps/blog/**'
Expand Down

0 comments on commit c925dea

Please sign in to comment.