module-deploy

Deploy Dockerfile-based modules to environments via SSH.

13|4|Updated Jun 5, 2025
One-click install
npx skills add https://github.com/maomao94/zero-service --skill module-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: module-deploy
Source: https://github.com/maomao94/zero-service/tree/main/.trae/skills/module-deploy
Command: npx skills add https://github.com/maomao94/zero-service --skill module-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the deployment of software modules that include Dockerfiles and environment-specific configurations to various deployment environments.

Core Features & Use Cases

  • Automated Deployment: Deploys modules containing Dockerfiles, env directories, and deploy scripts.
  • Environment Specificity: Supports deployment to 'test', 'dev', or custom environments using environment-specific .env files.
  • Use Case: Deploying a new microservice (e.g., podengine) to the 'test' environment by building its Docker image, transferring it to a remote server, and starting the service using a provided deploy.sh script and test.env configuration.

Quick Start

Execute the deploy script for the 'test' environment in the 'app/podengine' directory.

Frequently Asked Questions about module-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Docker image deployment to a remote server via SSH?

Automating Docker image deployment via SSH requires orchestrating image builds, secure transfers, and remote service execution. This Skill automates that exact pipeline by deploying modules containing Dockerfiles to designated targets using pre-defined remote access environment variables.

How do I use environment-specific .env files for CI/CD module deployment?

Environment-specific .env files drive CI/CD module deployment by providing target configurations. This Skill supports deploying to 'test', 'dev', or custom environments by utilizing environment-specific .env files alongside a deploy.sh script to configure and start remote services.

What environment variables do I need to set up for remote Docker deployment?

Remote Docker deployment requires pre-defined environment variables for remote SSH access, image naming, and service configuration. Setting these variables beforehand allows the deployment pipeline to securely transfer Docker images and orchestrate services on the designated remote server.

Can I deploy a microservice to a custom environment using Docker and SSH?

Deploying a microservice to a custom environment using Docker and SSH is supported by this Skill. It builds the module's Docker image, transfers it to the remote server, and starts the service using your provided deploy.sh script and custom .env configuration.

What is the best way to deploy a module containing Dockerfiles and deploy scripts?

Deploying a module containing Dockerfiles and deploy scripts is best handled by automating the build, transfer, and orchestration steps. This Skill orchestrates the Docker image build, securely transfers it via SSH, and executes the deploy script on the remote target.

Why is my automated Docker deployment not working with different environment configurations?

Automated Docker deployment issues often stem from missing pre-defined environment variables for remote access or incorrect .env file setup. Ensure your environment-specific configurations are properly defined and that your deploy.sh script is correctly configured for the target environment.