deploy
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m29s
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m29s
This commit is contained in:
@@ -46,11 +46,14 @@ jobs:
|
|||||||
|
|
||||||
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
|
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
ssh -o StrictHostKeyChecking=accept-new deploy@alpha.mintel.me "bash -s" << 'ENDSSH'
|
# Use SSH with connection keepalive and execute commands directly
|
||||||
set -e
|
ssh -o StrictHostKeyChecking=accept-new \
|
||||||
echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
-o ServerAliveInterval=30 \
|
||||||
cd /home/deploy/sites/klz-cables.com
|
-o ServerAliveCountMax=3 \
|
||||||
docker compose pull
|
-o ConnectTimeout=10 \
|
||||||
docker compose up -d --force-recreate --remove-orphans
|
deploy@alpha.mintel.me \
|
||||||
docker image prune -f
|
"echo '${{ secrets.REGISTRY_PASS }}' | docker login registry.infra.mintel.me -u '${{ secrets.REGISTRY_USER }}' --password-stdin && \
|
||||||
ENDSSH
|
cd /home/deploy/sites/klz-cables.com && \
|
||||||
|
docker compose pull && \
|
||||||
|
docker compose up -d --force-recreate --remove-orphans && \
|
||||||
|
docker image prune -f"
|
||||||
Reference in New Issue
Block a user