ci: switch to native docker execution without ssh dependency
This commit is contained in:
1 parent
cded33de29
commit
80585299f7
1 file changed
+10
-3
@@ -9,12 +9,19 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: canina
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Deploy via Host Script (with VPN)
|
||||
- name: Trigger Host Deploy (Docker Native)
|
||||
shell: sh
|
||||
env:
|
||||
BRANCH: ${{ github.ref_name }}
|
||||
run: |
|
||||
echo "Deploying branch: ${BRANCH}"
|
||||
sudo bash /opt/services/scripts/with-vpn.sh "bash /opt/services/canina/deploy.sh ${BRANCH}"
|
||||
docker run --rm \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /opt/services:/opt/services \
|
||||
-v /tmp:/tmp \
|
||||
--net=host \
|
||||
--privileged \
|
||||
docker:cli \
|
||||
docker exec gitea_runner bash -c "sudo bash /opt/services/scripts/with-vpn.sh \"bash /opt/services/canina/deploy.sh ${BRANCH}\"" || \
|
||||
docker run --rm -v /opt/services:/opt/services --net=host --privileged ubuntu:latest bash -c "bash /opt/services/scripts/with-vpn.sh \"bash /opt/services/canina/deploy.sh ${BRANCH}\""
|
||||
Reference in new issue
Block a user