fixing cors issue and ci/cd
CI/CD / Backend Unit Tests (push) Successful in 1m52s
CI/CD / Deploy (push) Successful in 1m46s

This commit is contained in:
2026-06-10 22:54:00 +02:00
parent ee4eff34c9
commit 30d2abd4c5
6 changed files with 37 additions and 163 deletions
-8
View File
@@ -73,19 +73,11 @@ jobs:
chmod 600 ~/.ssh/key
ssh-keyscan -H "${{ secrets.DEPLOY_HOST }}" >> ~/.ssh/known_hosts
printf '%s' "${{ secrets.FIREBASE_CREDENTIALS }}" > /tmp/firebase.json
printf '%s' "${{ secrets.MAIL_CREDS }}" > /tmp/.creds
ssh -i ~/.ssh/key \
"${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \
"mkdir -p ~/programs/etf-oglasi-server/config"
scp -i ~/.ssh/key \
/tmp/firebase.json \
/tmp/.creds \
"${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:~/programs/etf-oglasi-server/config/"
rm /tmp/firebase.json /tmp/.creds
ssh -i ~/.ssh/key \
"${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" \