deploy
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Failing after 1m32s

This commit is contained in:
2026-01-26 02:19:48 +01:00
parent ac1e22017e
commit 574d5a8a9a
6 changed files with 293 additions and 27 deletions

View File

@@ -39,6 +39,9 @@ jobs:
# docker push registry.infra.mintel.me/mintel/klz-cables.com:latest
- name: Deploy to production server
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASS: ${{ secrets.REGISTRY_PASS }}
run: |
mkdir -p ~/.ssh
echo "${{ secrets.ALPHA_SSH_KEY }}" > ~/.ssh/id_ed25519
@@ -46,13 +49,11 @@ jobs:
ssh-keyscan -H alpha.mintel.me >> ~/.ssh/known_hosts 2>/dev/null
ssh -o StrictHostKeyChecking=accept-new deploy@alpha.mintel.me << EOF
ssh -o StrictHostKeyChecking=accept-new deploy@alpha.mintel.me bash -c "'
set -e
echo "${{ secrets.REGISTRY_PASS }}" | docker login registry.infra.mintel.me \
-u "${{ secrets.REGISTRY_USER }}" --password-stdin
echo \"$REGISTRY_PASS\" | docker login registry.infra.mintel.me -u \"$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
EOF
'"