deploy

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package deploy provides the deployment pipeline orchestrator — the central "brain" of JumpGate that wires together git clone → manifest parse → Docker build → container run → status tracking.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	// contains filtered or unexported fields
}

Pipeline orchestrates the full deployment flow from a repository URL and commit hash to a running container.

func NewPipeline

func NewPipeline(dockerClient docker.Client, s *store.Store, cloner *git.Cloner, traefikNetwork string, buildTimeout, healthTimeout time.Duration) *Pipeline

NewPipeline creates a Pipeline with the given dependencies.

func (*Pipeline) Execute

func (p *Pipeline) Execute(ctx context.Context, repoURL, commitHash string) *Result

Execute runs the full deployment pipeline for the given repository and commit hash. It clones the repo, parses the manifest, builds the Docker image, starts the container, and updates the deployment store.

On failure, the deployment is marked Failed in the store and any partially created resources are cleaned up.

type Result

type Result struct {
	DeploymentID string
	Status       store.DeploymentStatus
	ContainerID  string
	AppName      string
	Error        error
}

Result holds the outcome of a deployment pipeline execution.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL