원클릭으로
deployment
Deployment workflows, containerization, and cloud-native practices
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Deployment workflows, containerization, and cloud-native practices
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
ZGO API development standards including pagination, error handling, and RESTful design
Test patterns, mocking strategies, and organization best practices
Standardized error format, error code clusters, and API client usage for consistent error handling.
Specifications for Zustand stores, React Query hooks, and the Service-Hook-Type pattern with optimistic updates.
Strict rules for environment variable management using Zod validation and src/config/env.ts.
Guidelines for managing internationalization (i18n) in the project using next-intl and unified translation patterns.
| name | deployment |
| description | Deployment workflows, containerization, and cloud-native practices |
| version | 1.0.0 |
| category | DevOps |
| tags | ["deployment","docker","k8s","cloud-run","ci-cd"] |
| author | ZGO Team |
| updated | "2026-01-24T00:00:00.000Z" |
This skill defines the deployment workflows and infrastructure standards for the ZGO project. it ensures that applications are delivered consistently, securely, and with high availability across environments.
We use Multi-Stage Docker Builds to ensure small, secure production images.
# Build Stage
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main ./cmd/server
# Production Stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata
WORKDIR /root/
COPY --from=builder /app/main .
COPY --from=builder /app/config ./config
EXPOSE 8080
CMD ["./main"]
.dockerignore to keep image smalldistroless or alpine for production to reduce attack surfaceCGO_ENABLED=0 for static binaryGoogle Cloud Run is the preferred platform for ZGO's serverless microservices.
# Build and push to registry
docker build -t gcr.io/[PROJECT_ID]/zgo-app:v1 .
docker push gcr.io/[PROJECT_ID]/zgo-app:v1
# Deploy to Cloud Run
gcloud run deploy zgo-app \
--image gcr.io/[PROJECT_ID]/zgo-app:v1 \
--region us-central1 \
--allow-unauthenticated
If the cloudrun MCP server is enabled, use it to deploy directly from the context.
We follow a GitOps approach using GitHub Actions.
Configurations must be injected via Environment Variables for 12-factor compliance.
| Key | Example (Dev) | Example (Prod) | Description |
|---|---|---|---|
APP_ENV | development | production | Environment toggle |
DB_DSN | localhost:5432 | db.production.local | Database connection |
LOG_LEVEL | debug | info | Log verbosity |
SECRET_KEY | dev-secret | KMS-stored-secret | Security token |
/healthz: Liveness check (checks process status)/readyz: Readiness check (checks DB/Redis connectivity).dockerignore excludes large/sensitive files (vendor, .env, tmp).Available in scripts/:
deploy-cloudrun.sh - Helper for GCR deployments.verify-image.sh - Checks image compliance & size.coding-standards: For log and config standards.api-development: For health check endpoint standards.Version: 1.0.0
Last Updated: 2026-01-24
Maintainer: ZGO Team