Skip to content

Commit 147b1cc

Browse files
committed
cd: wip
1 parent a40d9b7 commit 147b1cc

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- 'main'
88
- 'staging'
9+
- 'feature/continuous' # temporary while testing
910
tags:
1011
- 'v*'
1112
pull_request:
@@ -38,6 +39,7 @@ jobs:
3839
type=semver,pattern={{version}}
3940
type=semver,pattern={{major}}.{{minor}}
4041
type=raw,value=latest,enable={{is_default_branch}}
42+
type=raw,value=staging,enable=${{ github.ref == 'refs/heads/staging' }}
4143
4244
- name: Log in to GHCR
4345
uses: docker/login-action@v3

docker-compose.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ services:
33
image: ghcr.io/cncnet/cncnet-ladder-app:${APP_TAG}
44
restart: unless-stopped
55
container_name: cncnet_ladder_app
6-
env_file: ".env"
6+
user: "${HOST_UID:-1000}:${HOST_GID:-1000}"
7+
env_file: ".app.env"
78
environment:
89
XDG_CONFIG_HOME: /app/.config
910
XDG_DATA_HOME: /app/.data
1011
volumes:
1112
- caddy_data:/data
1213
- caddy_config:/config
1314
- ./cncnet-api/storage:/app/storage
15+
ports:
16+
- '${APP_PORT:-3000}:8000'
1417
depends_on:
1518
- redis
1619
networks:
@@ -22,7 +25,7 @@ services:
2225
container_name: cncnet_ladder_queue_findmatch
2326
depends_on:
2427
- app
25-
env_file: ".env"
28+
env_file: ".app.env"
2629
environment:
2730
QUEUE_NAME: 'findmatch'
2831
networks:
@@ -34,7 +37,7 @@ services:
3437
container_name: cncnet_ladder_queue_saveladderresult
3538
depends_on:
3639
- app
37-
env_file: ".env"
40+
env_file: ".app.env"
3841
environment:
3942
QUEUE_NAME: 'saveladderresult'
4043
networks:
@@ -46,7 +49,7 @@ services:
4649
container_name: cncnet_ladder_scheduler
4750
depends_on:
4851
- app
49-
env_file: ".env"
52+
env_file: ".app.env"
5053
networks:
5154
- cncnet
5255

@@ -70,8 +73,6 @@ services:
7073
container_name: cncnet_ladder_mysql
7174
restart: unless-stopped
7275
command: --max_connections=1000 --max_allowed_packet=128M --log_warnings=3 --wait_timeout=31536000 --slow-query-log --interactive_timeout=31536000
73-
ports:
74-
- "3307:3306"
7576
environment:
7677
MYSQL_DATABASE: ${MYSQL_DATABASE}
7778
MYSQL_USER: ${MYSQL_USER}
@@ -91,7 +92,7 @@ services:
9192
db-backup:
9293
container_name: cncnet_ladder_backup
9394
env_file:
94-
- '.env'
95+
- '.backup.env'
9596
image: tiredofit/db-backup
9697
volumes:
9798
- ./backups:/backup

0 commit comments

Comments
 (0)