Compare commits

...

2 Commits

Author SHA1 Message Date
parsa aghaei
6dd0e9ed56 ci(deploy): update production and stage domain routing configuration
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-27 16:52:39 +03:30
parsa aghaei
885ec72f25 ci(deploy): configure CI/CD for develop (stage.canina.ir) and main (canina.ir) domains
Some checks failed
Deploy Canina / deploy (push) Failing after 3m3s
2026-07-27 16:52:19 +03:30

View File

@ -1,7 +1,10 @@
name: Deploy Canina name: Deploy Canina
on: on:
push: push:
branches: [main] branches:
- main
- develop
jobs: jobs:
deploy: deploy:
@ -16,6 +19,10 @@ jobs:
echo "$SSH_KEY" > ~/.ssh/id_ed25519 echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 2234 -H 172.17.0.1 >> ~/.ssh/known_hosts ssh-keyscan -p 2234 -H 172.17.0.1 >> ~/.ssh/known_hosts
- name: Deploy - name: Deploy
shell: sh shell: sh
run: ssh -p 2234 devops@172.17.0.1 'bash /opt/services/scripts/depcanina.sh main' run: |
BRANCH="${GITHUB_REF_NAME}"
echo "Deploying branch: ${BRANCH}"
ssh -o StrictHostKeyChecking=no -p 2234 devops@172.17.0.1 "bash /opt/services/scripts/depcanina.sh ${BRANCH}"