build: add providers

This commit is contained in:
Polianin Nikita 2024-12-23 06:28:06 +03:00
parent 3e05863aea
commit 202d20bb25
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: Build and Deploy Docker Container
name: Build and Deploy Docker Container
on:
push:
@ -52,6 +52,12 @@ jobs:
SECURITY_HASH_SIZE: ${{ secrets.SECURITY_HASH_SIZE }}
SECURITY_HASH_TOKEN: ${{ secrets.SECURITY_HASH_TOKEN }}
SECURITY_SALT_SIZE: ${{ secrets.SECURITY_SALT_SIZE }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
YANDEX_CLIENT_ID: ${{ secrets.YANDEX_CLIENT_ID }}
YANDEX_CLIENT_SECRET: ${{ secrets.YANDEX_CLIENT_SECRET }}
MAILRU_CLIENT_ID: ${{ secrets.MAILRU_CLIENT_ID }}
MAILRU_CLIENT_SECRET: ${{ secrets.MAILRU_CLIENT_SECRET }}
run: |
ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
ssh $SSH_USER@$SSH_HOST "
@ -78,6 +84,12 @@ jobs:
-e ACTUAL_SUB_PATH=api \
-e SWAGGER_SUB_PATH=swagger \
-e TZ=Europe/Moscow \
-e GOOGLE_CLIENT_ID=$GOOGLE_CLIENT_ID \
-e GOOGLE_CLIENT_SECRET=GOOGLE_CLIENT_SECRET \
-e YANDEX_CLIENT_ID=YANDEX_CLIENT_ID \
-e YANDEX_CLIENT_SECRET=YANDEX_CLIENT_SECRET \
-e MAILRU_CLIENT_ID=MAILRU_CLIENT_ID \
-e MAILRU_CLIENT_SECRET=MAILRU_CLIENT_SECRET \
$DOCKER_IMAGE
"

View File

@ -84,7 +84,7 @@ To set up the `redirect URL` when registering and logging in using OAuth 2, use
"{schema}://{domain}{portString}{ACTUAL_SUB_PATH}/api/v1/Auth/OAuth2"
```
** Where:**
**Where:**
- `{schema}` is the protocol you are using (`http` or `https').
- `{domain}` is your domain (for example, `mydomain.com ` or IP address).