diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index d6420d6..ba73a5d 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -37,6 +37,9 @@ jobs: run: docker-compose -f docker-compose.testing.yml build helloworld - name: Run Cypress Tests + env: + GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} + GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} run: docker-compose -f docker-compose.testing.yml run cypress - name: Tear Down Test Environment diff --git a/README.md b/README.md index 4c91d0a..529fb1d 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ Run everything (frontend, backend, db, swagger, quests): docker compose build docker compose up -d +If you want to enable social login, you should have OAuth client token in a `.env` file: + + docker compose --env-file .env up -d + ## Testing Run Cypress locally, using the current development containers: @@ -42,6 +46,17 @@ Run Cypress in container, create brand-new containers along with it: docker compose -f docker-compose.prod.yml pull docker compose -f docker-compose.prod.yml up -d +To enable social login, you should have OAuth client token in a `.env` file: +You can copy from `example.env` + + # .env + GOOGLE_CLIENT_ID=... + GOOGLE_CLIENT_SECRET=... + +To enable it: + + docker compose --env-file .env -f docker-compose.prod.yml up -d + ## Standalone App (without Docker) Source: `app/` diff --git a/app/src/components/AuthenticationPart.vue b/app/src/components/AuthenticationPart.vue index a9f16d1..8ac1a14 100644 --- a/app/src/components/AuthenticationPart.vue +++ b/app/src/components/AuthenticationPart.vue @@ -1,5 +1,5 @@