fixing missing creds
This commit is contained in:
@@ -93,14 +93,23 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/key
|
chmod 600 ~/.ssh/key
|
||||||
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
|
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
# Write secrets to VPS (only if they've changed or first deploy)
|
echo "${{ secrets.FIREBASE_CREDENTIALS }}" | base64 -d > /tmp/firebase.json
|
||||||
ssh -i ~/.ssh/key "${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
|
|
||||||
|
ssh -i ~/.ssh/key \
|
||||||
|
"${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
|
||||||
"mkdir -p ~/programs/etf-oglasi-server/config"
|
"mkdir -p ~/programs/etf-oglasi-server/config"
|
||||||
|
|
||||||
|
echo "${{ secrets.MAIL_CREDS }}" | base64 -d > /tmp/.creds
|
||||||
|
|
||||||
echo "${{ secrets.FIREBASE_CREDENTIALS }}" | \
|
scp -i ~/.ssh/key \
|
||||||
ssh -i ~/.ssh/key "${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
|
/tmp/firebase.json \
|
||||||
"cat > ~/programs/etf-oglasi-server/config/firebase.json"
|
/tmp/.creds \
|
||||||
|
"${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:~/programs/etf-oglasi-server/config/"
|
||||||
|
|
||||||
ssh -i ~/.ssh/key "${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
|
|
||||||
|
|
||||||
|
rm /tmp/firebase.json
|
||||||
|
|
||||||
|
ssh -i ~/.ssh/key \
|
||||||
|
"${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
|
||||||
"cd ~/programs/etf-oglasi-server && docker compose pull && docker compose up -d"
|
"cd ~/programs/etf-oglasi-server && docker compose pull && docker compose up -d"
|
||||||
|
|||||||
Reference in New Issue
Block a user