8000 Add manual GitHub Actions workflow for deploying to external server by acwilan · Pull Request #12 · homeputers/ebal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add manual GitHub Actions workflow for deploying to external server #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 11, 2025

Conversation

acwilan
Copy link
Contributor
@acwilan acwilan commented Jun 10, 2025

This PR introduces a new GitHub Actions workflow (deploy.yml) that enables on-demand deployments to an external development server.

🚀 Key Features:

  • Uses workflow_dispatch to allow manual execution via the GitHub UI
  • Connects to the remote server over SSH using configured GitHub secrets
  • Performs:
    • git pull to sync the repo
    • docker compose down to stop old containers
    • docker compose build --no-cache to rebuild images
    • docker compose up -d to start the new version

🔐 Required Secrets:

The following secrets must be configured in the repository settings:

  • SSH_HOST: Public IP or domain of the external server
  • SSH_USER: SSH username (e.g., ubuntu)
  • SSH_PRIVATE_KEY: Private SSH key with access to the server (without passphrase)

🛠 Usage:

  • Navigate to the Actions tab in GitHub
  • Select "Deploy to Server"
  • Click "Run workflow"

This setup avoids triggering deployment on every push and provides controlled release for development testing.

@acwilan acwilan self-assigned this Jun 10, 2025
@acwilan acwilan merged commit 615c072 into main Jun 11, 2025
2 checks passed
@acwilan acwilan deleted the feature/auto-deploy branch June 11, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0