惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
量子位
S
SegmentFault 最新的问题
博客园 - 聂微东
博客园 - 【当耐特】
J
Java Code Geeks
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
V
V2EX
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Stop doing the SSH + GitHub secrets dance by hand. One co...
BenyaminRmb · 2026-06-01 · via DEV Community
Cover image for Stop doing the SSH + GitHub secrets dance by hand. One command does all of it.

BenyaminRmb

You know the ritual.

New project. New VPS. Generate keypair. SSH in. Paste into authorized_keys. Go to GitHub Settings. Add SSH_KEY. Add SSH_HOST. Add SSH_PORT. Add SSH_USER. Write deploy.yml from memory. Commit. Push. It fails because you mixed up a secret name. Fix. Push again.

15 minutes. Every time. For the rest of your career.

I got tired of it. So I killed it.

npx deploymate-cli

Enter fullscreen mode Exit fullscreen mode

That's it. One command. Fill in 5 fields. Done.


What happens under the hood

┌─────────────────────────────────────────────────────────┐
│  ✓  Generating RSA key pair          (in memory only)   │
│  ✓  Uploading public key to server                      │
│  ✓  Injecting GitHub secrets                            │
│  ✓  Committing deploy.yml                               │
│                                                         │
│  └─ CI/CD is live. Every push to main deploys.          │
└─────────────────────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

Every push to main now runs:

git fetch + reset --hard
docker compose down
docker compose up -d --build

Enter fullscreen mode Exit fullscreen mode

No agent. No dashboard. No new service to babysit. Just a GitHub Actions workflow that does exactly what it says.


The security bit — since you'll ask

The SSH password is used exactly once to bootstrap key auth. Never logged. Never stored. The private key is generated fresh, goes straight into a GitHub secret via libsodium box seal (how the API requires it), and then it's gone. After setup, your server only speaks to GitHub via the key we just installed.

Source is all on GitHub. src/services/ssh.ts and src/services/github.ts if you want to audit — it's small.


This isn't Coolify

No UI to manage. No containers to run. No database to back up. This is for when you want git push to deploy on a $6 VPS and you don't want to think about it again.

Small scope. Does one thing. Does it well.

github.com/Benyaminrmb/deploymate
npmjs.com/package/deploymate-cli

PRs welcome. Issues too — I actually read them.