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 -o StrictHostKeyChecking=accept-new deploy@alpha.mintel.me "bash -s" << 'ENDSSH'
|
||||
set -e
|
||||
echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
cd /home/deploy/sites/klz-cables.com
|
||||
docker compose pull
|
||||
docker compose up -d --force-recreate --remove-orphans
|
||||
docker image prune -f
|
||||
ENDSSH
|
||||
# Use SSH with connection keepalive and execute commands directly
|
||||
ssh -o StrictHostKeyChecking=accept-new \
|
||||
-o ServerAliveInterval=30 \
|
||||
-o ServerAliveCountMax=3 \
|
||||
-o ConnectTimeout=10 \
|
||||
deploy@alpha.mintel.me \
|
||||
"echo '${{ secrets.REGISTRY_PASS }}' | docker login registry.infra.mintel.me -u '${{ secrets.REGISTRY_USER }}' --password-stdin && \
|
||||
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