Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
relybytesPublic archive

About

Deprecated. Use relybytes/actions-kubernetes-deploy and relybytes/actions-docker-build-push instead.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

RelyBytes GitHub Actions

Deprecated

This monorepo is no longer maintained. The two actions that workflows actually call were extracted into their own repositories, and those are the ones that receive fixes:

Use this Instead of
relybytes/actions-kubernetes-deploy@v1 relybytes/actions/kube-deploy@v1
relybytes/actions-docker-build-push@v1 relybytes/actions/build-push-registry@v1

The copies in this repository predate the split. They are missing features the extracted versions gained, and they carry bugs already fixed there: kube-deploy still writes the kubeconfig to $HOME/.kube/config, a path every job on a self-hosted runner shares, and deletes it on cleanup while another job may still be reading it.

The remaining actions here (hestia-deploy, hestia-backup, ssh-setup, http-healthcheck, coolify-deploy, k8s-image-build, kubernetes-onvm-release) still work but receive no fixes. No workflow in the organisation calls them.

GitHub release GitHub marketplace License Build Status

A comprehensive suite of production-ready GitHub Actions for deployment, automation, and infrastructure management, with special focus on HestiaCP hosting environments.

Overview

RelyBytes Actions provides modular, reusable GitHub Actions designed for DevOps workflows. Each action is production-ready with comprehensive error handling, logging, and security best practices.

Available Actions

Deploy static sites to HestiaCP servers via SSH with rsync, backup support, and healthcheck capabilities.

  • Secure SSH deployment with key-based authentication
  • Automatic backups with configurable retention
  • Post-deployment healthchecks to verify success
  • Rsync-based file transfer with delete options
- uses: relybytes/actions/hestia-deploy@v1
  with:
    host: ${{ secrets.SSH_HOST }}
    username: ${{ secrets.SSH_USER }}
    private_key: ${{ secrets.SSH_PRIVATE_KEY }}
    target: /home/user/web/domain.com/public_html/

Setup reusable SSH connections for deployment and automation workflows.

  • Secure SSH key management with proper permissions
  • Connection testing with timeout and error handling
  • Reusable SSH aliases for subsequent steps
  • Environment variable setup for easy access
- uses: relybytes/actions/ssh-setup@v1
  with:
    host: ${{ secrets.SSH_HOST }}
    username: ${{ secrets.SSH_USER }}
    private_key: ${{ secrets.SSH_PRIVATE_KEY }}

Verify HTTP endpoints are healthy after deployment.

  • Flexible HTTP methods (GET, POST, PUT, DELETE, etc.)
  • Custom status code validation with range support
  • Content validation with regex patterns
  • Retry logic with configurable delays
- uses: relybytes/actions/http-healthcheck@v1
  with:
    url: https://your-app.com/health
    expected_status: "200-299"
    retries: "3"

Deploy Kubernetes manifests to a remote server via SSH and kubectl.

  • Manifest directory passed as an input for flexible releases
  • Optional registry secret refresh before applying manifests
  • Manifest image patching with configurable pull policy
  • Rollout restart and status checks after deployment
- uses: relybytes/actions/kubernetes-onvm-release@v1
  with:
    ssh_host: ${{ vars.SSH_HOST }}
    ssh_user: ${{ vars.SSH_USER }}
    ssh_password: ${{ secrets.SSH_PASSWORD }}
    manifests_dir: k8s/prod
    namespace: my-namespace
    deployment_name: my-app
    pod_label_selector: app=my-app
    image_reference: ghcr.io/my-org/my-app:${{ github.sha }}

Create remote backups of HestiaCP directories with compression and retention.

  • Multiple compression formats (tar.gz, tar.bz2, zip)
  • Configurable retention policies with automatic cleanup
  • Integrity verification for compressed backups
  • Pre/post backup commands for database dumps
- uses: relybytes/actions/hestia-backup@v1
  with:
    host: ${{ secrets.SSH_HOST }}
    username: ${{ secrets.SSH_USER }}
    private_key: ${{ secrets.SSH_PRIVATE_KEY }}
    source_directory: /home/user/web/site.com/public_html/

Build Docker images and push them to a container registry, ready for Kubernetes.

  • Multi-platform builds with Docker Buildx
  • Multi-tag publishing with primary and additional tags
  • Build args, labels and target stage support
  • Image digest output for downstream pinning
- uses: relybytes/actions/k8s-image-build@v1
  with:
    registry: ghcr.io
    username: ${{ github.actor }}
    password: ${{ secrets.GITHUB_TOKEN }}
    image_name: myorg/api
    image_tag: ${{ github.sha }}

Build a Docker image and push it to any container registry as {image}-{suffix}:YYYY-MM-DD.shortsha. Defaults to GHCR + the current repo when no credentials are passed.

  • Generic registry support: ghcr.io, Docker Hub, private registries — credentials and image name are all overridable
  • Standardized naming: environment suffix on the image repo, UTC date + short SHA on the tag
  • Branch-aware suffix: prod on main, dev on develop, pr-N on PRs, etc. (overridable)
  • Per-environment :latest auto-published on main/master
  • Multi-platform builds with Docker Buildx and auto OCI labels
# Zero-config: pushes to ghcr.io/<owner>/<repo>-{suffix}
- uses: relybytes/actions/build-push-registry@v1
# Custom registry
- uses: relybytes/actions/build-push-registry@v1
  with:
    registry: registry.example.com
    username: ${{ secrets.REGISTRY_USER }}
    password: ${{ secrets.REGISTRY_PASS }}
    image_name: team/myapp

Push to main produces ghcr.io/<owner>/<repo>-prod:2026-05-05.a464688 (+ :latest).

Apply Kubernetes manifests to a cluster with namespace and rollout management.

  • Kubeconfig from secret (raw YAML or base64-encoded)
  • Auto namespace creation and image placeholder substitution
  • Kustomize support and kubectl set image updates
  • Rollout wait with configurable timeout
  • Dry-run modes (client/server) and prune support
- uses: relybytes/actions-kubernetes-deploy@v1
  with:
    kubeconfig: ${{ secrets.KUBECONFIG }}
    namespace: production
    manifests: k8s/
    image: ghcr.io/myorg/api:${{ github.sha }}
    image_placeholder: __IMAGE__

Trigger a deployment on a Coolify instance via API token or webhook.

  • API or webhook trigger with the same interface
  • Wait-for-completion with configurable timeout and polling interval
  • Force rebuild, tag and PR preview support
  • Strict failure handling with optional warning-only mode
- uses: relybytes/actions/coolify-deploy@v1
  with:
    coolify_url: https://hostingcloud.relybytes.com
    api_token: ${{ secrets.COOLIFY_TOKEN }}
    uuid: ${{ secrets.COOLIFY_APP_UUID }}

Quick Start

1. Setup SSH Keys

Generate SSH keys for your deployment:

ssh-keygen -t rsa -b 4096 -C "github-actions" -f ~/.ssh/relybytes_deploy

Add the public key to your server:

ssh-copy-id -i ~/.ssh/relybytes_deploy.pub user@your-server.com

2. Configure GitHub Secrets

Add these secrets to your repository:

  • SSH_HOST: Your server hostname or IP
  • SSH_USER: SSH username
  • SSH_PRIVATE_KEY: Content of your private key file

3. Create Your First Workflow

Create .github/workflows/deploy.yml:

name: Deploy to Production

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: "18"

      - name: Install and Build
        run: |
          npm ci
          npm run build

      - name: Deploy to HestiaCP
        uses: relybytes/actions/hestia-deploy@v1
        with:
          host: ${{ secrets.SSH_HOST }}
          username: ${{ secrets.SSH_USER }}
          private_key: ${{ secrets.SSH_PRIVATE_KEY }}
          target: /home/user/web/mysite.com/public_html/
          delete: "true"
          healthcheck_url: https://mysite.com

Examples

Complete CI/CD Pipeline

name: Full CI/CD Pipeline

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: "18"
      - name: Install dependencies
        run: npm ci
      - name: Run tests
        run: npm test
      - name: Run linting
        run: npm run lint

  deploy-staging:
    if: github.ref == 'refs/heads/develop'
    needs: test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Build application
        run: npm run build
      - name: Deploy to staging
        uses: relybytes/actions/hestia-deploy@v1
        with:
          host: ${{ secrets.STAGING_HOST }}
          username: ${{ secrets.STAGING_USER }}
          private_key: ${{ secrets.STAGING_KEY }}
          target: /home/user/web/staging.mysite.com/public_html/
          delete: "true"
          healthcheck_url: https://staging.mysite.com/health

  deploy-production:
    if: github.ref == 'refs/heads/main'
    needs: test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Backup current version
        uses: relybytes/actions/hestia-backup@v1
        with:
          host: ${{ secrets.PRODUCTION_HOST }}
          username: ${{ secrets.PRODUCTION_USER }}
          private_key: ${{ secrets.PRODUCTION_KEY }}
          source_directory: /home/user/web/mysite.com/public_html/
          backup_name: pre_deploy_${{ github.sha }}
          retention: "10"

      - name: Build application
        run: npm run build

      - name: Deploy to production
        uses: relybytes/actions/hestia-deploy@v1
        with:
          host: ${{ secrets.PRODUCTION_HOST }}
          username: ${{ secrets.PRODUCTION_USER }}
          private_key: ${{ secrets.PRODUCTION_KEY }}
          target: /home/user/web/mysite.com/public_html/
          delete: "true"
          backup: "false" # Already backed up
          healthcheck_url: https://mysite.com/health
          healthcheck_retries: "10"

Multi-Environment Deployment

name: Multi-Environment Deploy

on:
  push:
    branches: [main, develop, feature/*]

jobs:
  deploy:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - branch: develop
            env: staging
            host: ${{ secrets.STAGING_HOST }}
            url: https://staging.mysite.com
          - branch: main
            env: production
            host: ${{ secrets.PRODUCTION_HOST }}
            url: https://mysite.com
    if: github.ref == format('refs/heads/{0}', matrix.branch)
    steps:
      - uses: actions/checkout@v4
      - name: Build for ${{ matrix.env }}
        run: npm run build:${{ matrix.env }}
      - name: Deploy to ${{ matrix.env }}
        uses: relybytes/actions/hestia-deploy@v1
        with:
          host: ${{ matrix.host }}
          username: ${{ secrets.SSH_USER }}
          private_key: ${{ secrets.SSH_PRIVATE_KEY }}
          target: /home/user/web/${{ matrix.env }}.mysite.com/public_html/
          delete: "true"
          healthcheck_url: ${{ matrix.url }}/health

Scheduled Backups

name: Scheduled Backups

on:
  schedule:
    - cron: "0 2 * * *" # Daily at 2 AM
  workflow_dispatch:

jobs:
  backup:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        site: [site1, site2, site3]
    steps:
      - name: Backup ${{ matrix.site }}
        uses: relybytes/actions/hestia-backup@v1
        with:
          host: ${{ secrets.BACKUP_HOST }}
          username: ${{ secrets.BACKUP_USER }}
          private_key: ${{ secrets.BACKUP_KEY }}
          source_directory: /home/user/web/${{ matrix.site }}.com/public_html/
          backup_name: ${{ matrix.site }}_daily
          retention: "30"
          compression: "tar.bz2"

Best Practices

Security

  • Never commit private keys to your repository
  • Use GitHub Secrets for all sensitive data
  • Rotate SSH keys regularly (every 90 days)
  • Use read-only keys for non-production environments
  • Implement principle of least privilege

Deployment Strategy

  • Always backup before production deployments
  • Use healthchecks to verify deployment success
  • Implement rollback procedures
  • Test in staging before production
  • Monitor deployment metrics

Backup Strategy

  • Schedule regular backups (daily for production)
  • Use appropriate retention policies
  • Test backup restoration regularly
  • Store backups in multiple locations
  • Monitor backup success rates

Performance

  • Use compression for large deployments
  • Exclude unnecessary files (logs, cache, node_modules)
  • Parallelize deployments when possible
  • Monitor network bandwidth
  • Optimize rsync options

Versioning

We use semantic versioning:

  • Major versions (X.0.0) - Breaking changes
  • Minor versions (X.Y.0) - New features, backward compatible
  • Patch versions (X.Y.Z) - Bug fixes, backward compatible

Using Versions

# Recommended: Use specific version for stability
- uses: relybytes/actions/hestia-deploy@v1.2.3

# Good: Use major version for latest features
- uses: relybytes/actions/hestia-deploy@v1

# Not recommended: Use latest (can break workflows)
- uses: relybytes/actions/hestia-deploy@latest

Using Git SHA

For maximum stability in critical workflows:

- uses: relybytes/actions/hestia-deploy@abc123def456

Troubleshooting

Common Issues

SSH Connection Failed

  • Verify host and port are correct
  • Check SSH key format and permissions
  • Ensure server is accessible from GitHub Actions
  • Check firewall and network settings

Permission Denied

  • Verify SSH user has write permissions
  • Check directory ownership and permissions
  • Ensure SSH key is properly authorized
  • Validate user account status

Healthcheck Failed

  • Verify healthcheck URL is accessible
  • Check timeout and retry settings
  • Ensure application is running
  • Test endpoint manually

Backup Creation Failed

  • Check available disk space
  • Verify source directory exists
  • Test compression tools on server
  • Check exclude pattern syntax

Debug Mode

Enable detailed logging:

- name: Enable debug
  run: |
    echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
    echo "ACTIONS_RUNNER_DEBUG=true" >> $GITHUB_ENV

Getting Help

  1. Check the individual action documentation for specific issues
  2. Search existing issues on GitHub
  3. Create a new issue with detailed information
  4. Join our GitHub Discussions for questions

Contributing

We welcome contributions! Here's how to get started:

Development Setup

# Clone the repository
git clone https://github.com/relybytes/actions.git
cd actions

# Install dependencies (if any)
npm install

# Run tests
npm test

Submitting Changes

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Add tests if applicable
  5. Ensure all tests pass: npm test
  6. Commit your changes: git commit -m 'Add amazing feature'
  7. Push to branch: git push origin feature/amazing-feature
  8. Open a Pull Request

Guidelines

  • Follow existing code style and patterns
  • Add comprehensive tests for new features
  • Update documentation for any API changes
  • Use semantic versioning for releases
  • Test thoroughly before submitting

Roadmap

  • hestia-ssl - SSL certificate management
  • hestia-database - Database backup and migration
  • hestia-domain - Domain and subdomain management
  • hestia-user - User account management
  • hestia-mail - Email configuration management
  • hestia-cron - Cron job management

Support

Documentation

  • Individual Actions: See action-specific README files
  • Examples: Check the examples directory
  • API Reference: Detailed parameter documentation

Community

Professional Support

For enterprise support, custom development, or consulting:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • GitHub Actions team for the excellent platform
  • HestiaCP community for the hosting control panel
  • Contributors who help improve these actions
  • Users who provide valuable feedback

Built with ❤️ by RelyBytes

Providing reliable automation solutions for modern web infrastructure.

About

Deprecated. Use relybytes/actions-kubernetes-deploy and relybytes/actions-docker-build-push instead.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors