Skip to content

CI/CD auto-deploy on push to main #81

@fpindej

Description

@fpindej

Task

Automate deployment so pushing to main triggers a build + deploy to the VPS.

Options

Option A: GitHub Actions + Docker Hub + webhook

  1. GH Action builds and pushes fpindej/netrock-web image on push to main
  2. Webhook or SSH triggers docker compose pull && docker compose up -d on VPS

Option B: GitHub Actions + SSH deploy

  1. GH Action builds the image
  2. SSH into VPS, pull, and restart

Option C: Watchtower

  1. GH Action builds and pushes to Docker Hub
  2. Watchtower on VPS auto-pulls new images

Current manual process

./scripts/deploy.sh [tag]  # builds linux/amd64, pushes to Docker Hub
# Then SSH to VPS:
cd /var/apps/netrock-cli && docker compose pull && docker compose up -d

Priority

Medium - manual deploy works fine for alpha, but automation prevents forgetting to deploy.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions