From 310763ebb8643c137b997d5cada550e4e60cb05e Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Mon, 9 Jan 2023 14:07:30 +0900 Subject: [PATCH] Adding discord credentials to dev deployment --- .github/workflows/release.yaml | 3 +++ ansible/dev.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e7b8806c..17b00357 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/ansible/dev.yaml b/ansible/dev.yaml index 940e6cbc..16cb0a17 100644 --- a/ansible/dev.yaml +++ b/ansible/dev.yaml @@ -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