ci: execute deploy script inside gitea_runner environment for 100% success
Some checks failed
Deploy Canina / deploy (push) Failing after 2s

This commit is contained in:
parsa aghaei 2026-08-09 15:03:36 +03:30
parent 98c2c4c1bb
commit ce46daa985

View File

@ -11,10 +11,10 @@ jobs:
deploy:
runs-on: canina
steps:
- name: Execute Deployment Script
- name: Trigger Automatic Deployment
shell: sh
env:
BRANCH: ${{ github.ref_name }}
run: |
echo "Starting CI/CD deployment for branch: ${BRANCH}"
sh /opt/services/canina/deploy.sh "${BRANCH}"
env:
BRANCH: ${{ github.ref_name }}
docker exec -e BRANCH="${BRANCH}" gitea_runner sh -c 'bash /opt/services/canina/deploy.sh "$BRANCH"'