From 356d7a986d72d05ae3ebd0cf16114c9f48ffeb03 Mon Sep 17 00:00:00 2001 From: Michal Drla Date: Sat, 27 Jan 2024 12:28:54 +0100 Subject: [PATCH] feat: Add database connection string to deployment Signed-off-by: Michal Drla --- .github/actions/deploy-app/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/deploy-app/action.yaml b/.github/actions/deploy-app/action.yaml index 735d4e8..9219ec1 100644 --- a/.github/actions/deploy-app/action.yaml +++ b/.github/actions/deploy-app/action.yaml @@ -23,4 +23,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 pull mimotej/oqix:latest &&" 'docker kill $(sudo docker ps -a -q); docker rm $(docker ps --filter status=exited -q);' "docker run -d --restart unless-stopped -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 pull mimotej/oqix:latest &&" 'docker kill $(sudo docker ps -a -q); docker rm $(docker ps --filter status=exited -q);' "docker run -d --restart unless-stopped -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"