From 0c5699fc49edce0e4b58e28b97977b2c0341d9b0 Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 1 May 2024 10:21:59 +0200 Subject: [PATCH] fix: changed dir Co-authored-by: Gonzalo Suarez Losada Co-authored-by: Jorge Gancedo --- .github/workflows/e2e.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 34c53f29..585ba1e4 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -19,13 +19,14 @@ jobs: - run: openssl pkcs12 -export -out server.p12 -inkey server.key -in server.crt -passout pass:${{ secrets.E2E_SSL_PASSWORD }} - run: sudo mkdir /certs - run: sudo mv server.p12 /certs/keystore.p12 + - run: cd ./webapp/e2e - run: | - echo "DATABASE_USER=${{ secrets.DATABASE_USER }}" >> ./webapp/e2e/.env - echo "DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}" >> ./webapp/e2e/.env - echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> ./webapp/e2e/.env - echo "REACT_APP_API_ENDPOINT=https://localhost:8443" >> ./webapp/e2e/./webapp/.env - echo "SSL_PASSWORD=${{ secrets.E2E_SSL_PASSWORD }}" >> ./webapp/e2e/.env - - run: docker compose -f ./webapp/e2e/docker-compose.yml up -d + echo "DATABASE_USER=${{ secrets.DATABASE_USER }}" >> .env + echo "DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}" >> .env + echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env + echo "REACT_APP_API_ENDPOINT=https://localhost:8443" >> ./webapp/.env + echo "SSL_PASSWORD=${{ secrets.E2E_SSL_PASSWORD }}" >> .env + - run: docker compose -f docker-compose.yml up -d - run: npm --prefix webapp install - run: docker ps -a - run: docker logs api-defaultASW