update docker-compsoe to docker compose

This commit is contained in:
Maidul Islam
2024-08-02 10:22:21 -04:00
parent 78e41a51c0
commit 995f0360fb
2 changed files with 6 additions and 6 deletions

View File

@@ -22,14 +22,14 @@ jobs:
# uncomment this when testing locally using nektos/act # uncomment this when testing locally using nektos/act
- uses: KengoTODA/actions-setup-docker-compose@v1 - uses: KengoTODA/actions-setup-docker-compose@v1
if: ${{ env.ACT }} if: ${{ env.ACT }}
name: Install `docker-compose` for local simulations name: Install `docker compose` for local simulations
with: with:
version: "2.14.2" version: "2.14.2"
- name: 📦Build the latest image - name: 📦Build the latest image
run: docker build --tag infisical-api . run: docker build --tag infisical-api .
working-directory: backend working-directory: backend
- name: Start postgres and redis - name: Start postgres and redis
run: touch .env && docker-compose -f docker-compose.dev.yml up -d db redis run: touch .env && docker compose -f docker-compose.dev.yml up -d db redis
- name: Start the server - name: Start the server
run: | run: |
echo "SECRET_SCANNING_GIT_APP_ID=793712" >> .env echo "SECRET_SCANNING_GIT_APP_ID=793712" >> .env
@@ -72,6 +72,6 @@ jobs:
run: oasdiff breaking https://app.infisical.com/api/docs/json http://localhost:4000/api/docs/json --fail-on ERR run: oasdiff breaking https://app.infisical.com/api/docs/json http://localhost:4000/api/docs/json --fail-on ERR
- name: cleanup - name: cleanup
run: | run: |
docker-compose -f "docker-compose.dev.yml" down docker compose -f "docker-compose.dev.yml" down
docker stop infisical-api docker stop infisical-api
docker remove infisical-api docker remove infisical-api

View File

@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: KengoTODA/actions-setup-docker-compose@v1 - uses: KengoTODA/actions-setup-docker-compose@v1
if: ${{ env.ACT }} if: ${{ env.ACT }}
name: Install `docker-compose` for local simulations name: Install `docker compose` for local simulations
with: with:
version: "2.14.2" version: "2.14.2"
- name: 🔧 Setup Node 20 - name: 🔧 Setup Node 20
@@ -33,7 +33,7 @@ jobs:
run: npm install run: npm install
working-directory: backend working-directory: backend
- name: Start postgres and redis - name: Start postgres and redis
run: touch .env && docker-compose -f docker-compose.dev.yml up -d db redis run: touch .env && docker compose -f docker-compose.dev.yml up -d db redis
- name: Start integration test - name: Start integration test
run: npm run test:e2e run: npm run test:e2e
working-directory: backend working-directory: backend
@@ -44,4 +44,4 @@ jobs:
ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218 ENCRYPTION_KEY: 4bnfe4e407b8921c104518903515b218
- name: cleanup - name: cleanup
run: | run: |
docker-compose -f "docker-compose.dev.yml" down docker compose -f "docker-compose.dev.yml" down