From 33c985aa2665e383467cc784e812087bfb0344ca Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 30 Apr 2024 23:30:43 +0200 Subject: [PATCH] fix: env vars --- .github/workflows/e2e.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index df32e00e..0bee33df 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -19,7 +19,13 @@ 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: docker compose -f ./webapp/e2e/docker-compose.yml up -d --pull always + - run: | + echo "DATABASE_USER=${{ secrets.DATABASE_USER }}" >> .env + echo "DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}" >> .env + echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env + echo "API_URI=https://${{ secrets.APP_DOMAIN }}:8443" >> .env + echo "SSL_PASSWORD=${{ secrets.E2E_SSL_PASSWORD }}" >> .env + - run: docker compose -f ./webapp/e2e/docker-compose.yml up -d - run: npm --prefix webapp install - run: npm --prefix webapp run build - run: npm --prefix webapp run test:e2e \ No newline at end of file