Adding discord credentials to dev deployment

This commit is contained in:
Keith Stevens
2023-01-09 14:07:30 +09:00
parent d2dd96b43a
commit 310763ebb8
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -30,6 +30,9 @@ jobs:
deploy-dev:
needs: [build-backend, build-web, build-bot]
runs-on: ubuntu-latest
env:
WEB_DISCORD_CLIENT_ID: ${{ secrets.DEV_WEB_DISCORD_CLIENT_ID }}
WEB_DISCORD_CLIENT_SECRET: ${{ secrets.DEV_WEB_DISCORD_CLIENT_SECRET }}
steps:
- name: Checkout
uses: actions/checkout@v2
+4
View File
@@ -39,6 +39,8 @@
state: started
restart_policy: always
network_mode: oasst
ports:
- 1080:1080
- name: Run the oasst oasst-backend
community.docker.docker_container:
@@ -68,6 +70,8 @@
restart_policy: always
network_mode: oasst
env:
DISCORD_CLIENT_ID: "{{ lookup('WEB_DISCORD_CLIENT_ID') }} "
DISCORD_CLIENT_SECRET: "{{ lookup('WEB_DISCORD_CLIENT_SECRET') }} "
FASTAPI_URL: http://oasst-backend:8080
FASTAPI_KEY: "1234"
DATABASE_URL: postgres://postgres:postgres@oasst-postgres-web/postgres