mirror of
https://github.com/rnvm9wjdtj-bot/myaps_api.git
synced 2026-06-02 05:54:40 +00:00
ci(github actions): 硬编码CI的postgres和redis配置
移除环境变量依赖,直接使用固定版本postgres15、redis7以及固定的数据库密码、库名和端口号,简化CI服务配置
This commit is contained in:
@@ -73,12 +73,12 @@ jobs:
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:${{ env.POSTGRES_VERSION }}
|
||||
image: postgres:15
|
||||
env:
|
||||
POSTGRES_PASSWORD: ${{ env.TEST_DB_PASSWORD }}
|
||||
POSTGRES_DB: ${{ env.TEST_DB_NAME }}
|
||||
POSTGRES_PASSWORD: test_password
|
||||
POSTGRES_DB: myaps_test
|
||||
ports:
|
||||
- ${{ env.POSTGRES_PORT }}:${{ env.POSTGRES_PORT }}
|
||||
- 5432:5432
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
@@ -86,9 +86,9 @@ jobs:
|
||||
--health-retries 5
|
||||
|
||||
redis:
|
||||
image: redis:${{ env.REDIS_VERSION }}
|
||||
image: redis:7
|
||||
ports:
|
||||
- ${{ env.REDIS_PORT }}:${{ env.REDIS_PORT }}
|
||||
- 6379:6379
|
||||
options: >-
|
||||
--health-cmd "redis-cli ping"
|
||||
--health-interval 10s
|
||||
|
||||
Reference in New Issue
Block a user