Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix deploy

Veauville Raphaelf370b557f3ee
diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml
index 1bcd838f..3748a280 100755
--- a/.github/workflows/deploy_to_prod.yml
+++ b/.github/workflows/deploy_to_prod.yml
@@ -18,22 +18,19 @@ jobs:
touch ~/.ssh/known_hosts
touch ~/.ssh/deploy_key
+ chmod 700 ~/.ssh
+ chmod 600 ~/.ssh/known_hosts
+ chmod 600 ~/.ssh/deploy_key
+
if [[ -n $DEPLOY_SSH_KEY ]]; then
echo "Adding deploy key..."
printf "%s" "$DEPLOY_SSH_KEY" > ~/.ssh/deploy_key
- cat ~/.ssh/deploy_key
- echo "Deploy key added! Checking deploy key..."
- wc -m ~/.ssh/deploy_key
else
echo "DEPLOY_SSH_KEY is not set. Make sure you've added it as a secret in your repository."
exit 1
fi
ssh-keyscan -t ed25519 161.97.81.3 >> ~/.ssh/known_hosts
- chmod 700 ~/.ssh
- chmod 600 ~/.ssh/known_hosts
- chmod 600 ~/.ssh/deploy_key
-
scp -i ~/.ssh/deploy_key -r frontend/* 161.97.81.3:/home/smaug/sites/alexandrie/frontend
scp -i ~/.ssh/deploy_key -r dashboard/* 161.97.81.3:/home/smaug/sites/alexandrie/dashboard
scp -i ~/.ssh/deploy_key -r backend/* 161.97.81.3:/home/smaug/sites/alexandrie/backend