Automated Git & SSH Project Deployment for Openclaw

A powerful automation module for deploying code from Git repositories to Linux servers via SSH with support for builds and rollbacks.

zjm1226
v1.0.0
Mar 31, 2026
0
925
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install auto-deploy

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install auto-deploy using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Automated Git & SSH Project Deployment?

This skill empowers developers to automate the transition from code changes to live production environments using Openclaw Skills. It handles the complexities of private Git repository management, build environment execution (Node.js/Java), and remote server orchestration. By integrating with Linux-based servers via SSH, it provides a seamless pipeline that reduces manual errors and increases deployment velocity.

Designed for modern development cycles, it ensures that every code modification is backed by a reliable build process and a secure transfer mechanism. Whether you are managing a single microservice or a complex multi-module project, this module within the Openclaw Skills ecosystem provides the reliability needed for professional-grade DevOps.

Automated Git & SSH Project Deployment Use Cases

  • Automatic development and deployment cycles triggered by specific feature requests.
  • Managing continuous delivery for private repositories on custom Linux infrastructure.
  • Orchestrating complex builds involving both Java and Node.js environments.
  • Maintaining a robust backup and rollback system for mission-critical web applications.

How Automated Git & SSH Project Deployment Works

  1. Pulls the latest code from the Git repository using either HTTP or SSH authentication.
  2. Performs necessary code modifications or feature implementations.
  3. Commits and pushes changes to maintain a clean version history.
  4. Runs build commands such as npm build or mvn package to generate deployment artifacts.
  5. Archives the build output and transfers it securely to the target server via SCP.
  6. Executes remote scripts to back up existing versions and deploy the new package.
  7. Restarts the application service using systemd, PM2, or custom scripts.
  8. Validates the deployment through an automated health check endpoint.

Automated Git & SSH Project Deployment Setup

To get started with this skill in Openclaw Skills, configure your SSH keys for both Git and the target server:

# Generate a deployment key
ssh-keygen -t ed25519 -C "openclaw-deploy" -f ~/.ssh/openclaw_deploy

# Authorize the key on your target server
ssh-copy-id -i ~/.ssh/openclaw_deploy.pub user@server_ip

Next, populate the DEPLOY_CONFIG.md file with your specific project parameters, including Git URLs and server paths.

Automated Git & SSH Project Deployment Data Schema & Taxonomy

The deployment process is governed by the following metadata structure defined in DEPLOY_CONFIG.md:

Configuration Key Purpose Example
git.url The remote Git repository location http://192.168.1.169:8015/repo
server.host IP address of the target Linux server 192.168.1.100
project.type Defines the build environment nodejs, java, or nodejs+java
project.deploy.restartCmd Command used to reboot the service pm2 restart app_name
server.deployPath The absolute path for application files /www/wwwroot/points

Automated Git & SSH Project Deployment Advanced Features

  • Automated Version Backups: Every deployment triggers a timestamped backup of the previous version.
  • Fail-safe Rollback Workflow: Provides a specific logic to quickly revert to the last stable build if health checks fail.
  • Multi-Environment Support: Easily switch between main and feature branches within Openclaw Skills.
  • Health Monitoring: Integrated curl-based validation ensures services are reachable after a restart.
  • Permission Enforcement: Enforces secure file permissions for SSH keys and deployment directories.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*