mirror of
https://github.com/Infisical/infisical.git
synced 2026-05-02 03:02:03 -04:00
remove -d mode on docker compose
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: "Check Backend Breaking API Changes"
|
||||
name: "Check API For Breaking Changes"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
- name: Start postgres and redis
|
||||
run: touch .env && docker-compose -f docker-compose.pg.yml up -d db redis
|
||||
- name: Start the server
|
||||
run: docker run --name infisical-api -d -p 4000:4000 -e DB_CONNECTION_URI=$DB_CONNECTION_URI -e REDIS_URL=$REDIS_URL -e JWT_AUTH_SECRET=$JWT_AUTH_SECRET --entrypoint '/bin/sh' infisical-api -c "npm run migration:latest && ls && node dist/main.mjs"
|
||||
run: docker run --name infisical-api -p 4000:4000 -e DB_CONNECTION_URI=$DB_CONNECTION_URI -e REDIS_URL=$REDIS_URL -e JWT_AUTH_SECRET=$JWT_AUTH_SECRET --entrypoint '/bin/sh' infisical-api -c "npm run migration:latest && ls && node dist/main.mjs"
|
||||
env:
|
||||
REDIS_URL: redis://host.docker.internal:6379
|
||||
DB_CONNECTION_URI: postgres://infisical:infisical@host.docker.internal:5432/infisical?sslmode=disable
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
- name: Install openapi api diff
|
||||
run: npm install -g openapi-diff
|
||||
- name: Wait for containers to be stable
|
||||
run: timeout 60s sh -c 'until docker ps | grep infisical-api | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
|
||||
run: timeout 180s sh -c 'until docker ps | grep infisical-api | grep -q healthy; do echo "Waiting for container to be healthy..."; sleep 2; done'
|
||||
- name: Get changes made in API
|
||||
id: openapi-diff
|
||||
run: openapi-diff https://app.infisical.com/api/docs/json http://localhost:4000/api/docs/json
|
||||
|
||||
Reference in New Issue
Block a user