Agent skill
Deploy Light Bot to Staging
Deploy the Light Bot application to the staging server using SSH and Docker Compose.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/deploy-light-bot-to-staging-mattnigh-skills-collection
SKILL.md
Deploy Light Bot to Staging
Deploy the Light Bot application to the staging server using SSH and Docker Compose.
Server Configuration
- SSH Key:
~/.ssh/personal - SSH Host:
root@rmn.pp.ua - Project Directory:
services/light-bot-staging - Service Name:
light-bot-staging - Telegram Channels:
@power_po2_test(for both status and schedule notifications in staging) - Docker Compose File:
/root/services/docker-compose.yml
Task
Execute the deployment process to update the Light Bot on the staging server:
Step 1: Check and Sync Environment Variables
Before deployment, check if there are new environment variables in .env.example that need to be added to .env:
- Fetch both files (use server configuration from above):
.env.examplefrom local project.envfrom the server
- Compare them to find any new variables in
.env.examplethat are missing in.env - If new variables are found:
- Add them to
.envwith the default values from.env.example - Important: Do NOT modify existing values in
.env- they may be intentionally different - Note: Ensure
TELEGRAM_CHANNEL_IDandTELEGRAM_SCHEDULE_CHANNEL_IDare set to@power_po2_testin staging - Ask the user if unsure about any changes
- Add them to
- If changes were made, upload the updated
.envback to the server
Step 2: Run Deployment Script
Once .env is synced, run the deployment script with the server configuration:
./.claude/skills/deploy-staging/deploy.sh ~/.ssh/personal root@rmn.pp.ua services/light-bot-staging light-bot-staging
The script will:
- SSH into the staging server (root@rmn.pp.ua)
- Navigate to project directory
- Pull latest changes from git
- Rebuild the Docker image
- Restart the service with docker-compose
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?