diff --git a/.github/actions/deploy-app/action.yaml b/.github/actions/deploy-app/action.yaml index 9219ec1..776251e 100644 --- a/.github/actions/deploy-app/action.yaml +++ b/.github/actions/deploy-app/action.yaml @@ -13,6 +13,7 @@ runs: GUILD_ID: ${{ inputs.GUILD_ID }} SSH_KEY: ${{ inputs.SSH_KEY }} KNOWN_HOSTS: ${{ inputs.KNOWN_HOSTS }} + DATABASE_CONNECTION_STRING: ${{ inputs.DATABASE_CONNECTION_STRING }} shell: bash run: | echo "Log in to docker..." diff --git a/.github/actions/restart-app/action.yaml b/.github/actions/restart-app/action.yaml index 867b1cc..20382d9 100644 --- a/.github/actions/restart-app/action.yaml +++ b/.github/actions/restart-app/action.yaml @@ -13,6 +13,7 @@ runs: GUILD_ID: ${{ inputs.GUILD_ID }} SSH_KEY: ${{ inputs.SSH_KEY }} KNOWN_HOSTS: ${{ inputs.KNOWN_HOSTS }} + DATABASE_CONNECTION_STRING: ${{ inputs.DATABASE_CONNECTION_STRING }} shell: bash run: | echo "Log in to docker..." @@ -23,4 +24,4 @@ runs: mkdir ~/.ssh echo $KNOWN_HOSTS >> ~/.ssh/known_hosts echo "Connect to VM and start app..." - ssh -i ~/vm_key.key $ADDRESS_VM "cd /app && " 'docker kill $(sudo docker ps -a -q); docker rm $(docker ps --filter status=exited -q);' "docker run -d -e DISCORD_TOKEN=$DISCORD_TOKEN -e CLIENT_ID=$CLIENT_ID -e GUILD_ID=$GUILD_ID -it --mount type=bind,source=/app/userLog.json,target=/root/userLog.json --mount type=bind,source=/app/config.json,target=/root/config.json mimotej/oqix:latest" + ssh -i ~/vm_key.key $ADDRESS_VM "cd /app && " 'docker kill $(sudo docker ps -a -q); docker rm $(docker ps --filter status=exited -q);' "docker run -d -e DISCORD_TOKEN=$DISCORD_TOKEN -e CLIENT_ID=$CLIENT_ID -e GUILD_ID=$GUILD_ID -e DATABASE_CONNECTION_STRING=$DATABASE_CONNECTION_STRING -it --mount type=bind,source=/app/userLog.json,target=/root/userLog.json --mount type=bind,source=/app/config.json,target=/root/config.json mimotej/oqix:latest" diff --git a/.github/workflows/deploy-app.yaml b/.github/workflows/deploy-app.yaml index 2a5245b..f1b493d 100644 --- a/.github/workflows/deploy-app.yaml +++ b/.github/workflows/deploy-app.yaml @@ -50,3 +50,4 @@ jobs: GUILD_ID: ${{ secrets.GUILD_ID }} SSH_KEY: ${{ secrets.SSH_KEY }} KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }} + DATABASE_CONNECTION_STRING: ${{ secrets.DATABASE_CONNECTION_STRING }} diff --git a/.github/workflows/restart-app.yaml b/.github/workflows/restart-app.yaml index 6a0c3f1..8a4f477 100644 --- a/.github/workflows/restart-app.yaml +++ b/.github/workflows/restart-app.yaml @@ -20,3 +20,4 @@ jobs: GUILD_ID: ${{ secrets.GUILD_ID }} SSH_KEY: ${{ secrets.SSH_KEY }} KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }} + DATABASE_CONNECTION_STRING: ${{ secrets.DATABASE_CONNECTION_STRING }}