ci: use docker:cli container image with docker socket mount
Deploy Canina / deploy (push) Failing after 1s
Deploy Canina / deploy (push) Failing after 1s
This commit is contained in:
1 parent
ce46daa985
commit
f788e0af18
1 file changed
+6
-1
@@ -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"'
|
||||
docker exec -e BRANCH="${BRANCH}" gitea_runner sh -c "bash /opt/services/canina/deploy.sh ${BRANCH}"
|
||||
Reference in new issue
Block a user