name: Deploy Palico Bot on: push: branches: - main jobs: deploy: runs-on: docker # Image fixée ici : celle du label « docker » (node:20-bullseye) n'est plus maintenue, # et son miroir de sécurité renvoie 404 (échec du run 4). container: image: node:24-bookworm steps: - name: Deploy on WebApps env: DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} run: | # L'image contient déjà le client SSH ; ne l'installer que s'il manque. if ! command -v ssh >/dev/null; then apt-get update apt-get install -y --no-install-recommends openssh-client fi mkdir -p ~/.ssh printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 ssh -o StrictHostKeyChecking=no \ -i ~/.ssh/id_ed25519 \ -p 2911 \ shinuwa@192.168.0.100 \ "sudo /usr/local/bin/deploy-palico-bot"