All checks were successful
Deploy — Staging / Lint, Typecheck & Test (push) Successful in 1m31s
Deploy — Staging / Build & push — admin (push) Successful in 1m39s
Deploy — Staging / Build & push — storefront (push) Successful in 57s
Deploy — Staging / Deploy to staging VPS (push) Successful in 20s
NEXT_PUBLIC_CLOUDINARY_API_KEY and NEXT_PUBLIC_IMAGE_PROCESSING_API_URL are NEXT_PUBLIC_* vars that must be baked in at build time — added as ARG/ENV in admin Dockerfile and as --build-arg in the workflow build step. CLOUDINARY_API_SECRET is a server-side secret — added to the deploy step's env block, written to /opt/staging/.env via printf, and exposed to the admin container via compose.yml environment block. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
508 B
YAML
26 lines
508 B
YAML
name: petloft-staging
|
|
|
|
services:
|
|
storefront:
|
|
image: ${REGISTRY}/storefront:staging
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3001:3000"
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
environment:
|
|
- CLERK_SECRET_KEY
|
|
|
|
admin:
|
|
image: ${REGISTRY}/admin:staging
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3002:3001"
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
environment:
|
|
- CLERK_SECRET_KEY=${ADMIN_CLERK_SECRET_KEY}
|
|
- CLOUDINARY_API_SECRET
|