From f788e0af18041f71a961b83eeb091c41f30fa8ca Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Sun, 9 Aug 2026 15:05:43 +0330
Subject: [PATCH] ci: use docker:cli container image with docker socket mount
---
.gitea/workflows/deploy.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
index 8d44cb41..ae27055b 100644
--- a/.gitea/workflows/deploy.yml
+++ b/.gitea/workflows/deploy.yml
@@ -10,6 +10,11 @@ on:
jobs:
deploy:
runs-on: canina
+ container:
+ image: docker:cli
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ - /opt/services:/opt/services
steps:
- name: Trigger Automatic Deployment
shell: sh
@@ -17,4 +22,4 @@ jobs:
BRANCH: ${{ github.ref_name }}
run: |
echo "Starting CI/CD deployment for branch: ${BRANCH}"
- docker exec -e BRANCH="${BRANCH}" gitea_runner sh -c 'bash /opt/services/canina/deploy.sh "$BRANCH"'
\ No newline at end of file
+ docker exec -e BRANCH="${BRANCH}" gitea_runner sh -c "bash /opt/services/canina/deploy.sh ${BRANCH}"
\ No newline at end of file