UNPKG

@jin7942/ray

Version:

Lightweight CI/CD deployment tool powered by Docker and Git

17 lines (16 loc) 573 B
import { StepContext } from '../_types/context'; /** * Deploys a Docker container (zero-downtime) or uses docker-compose. * * - If docker.type === 'docker': * 1. Starts new container with temporary name * 2. Connects to networks if needed * 3. Stops and removes old container if exists * 4. Renames new container to original name * * - If docker.type === 'compose': * 1. Uses docker-compose up -d to recreate services * * @param ctx - Pipeline execution context */ export declare function dockerDeployContainer(ctx: StepContext): Promise<void>;