fix: production deployment readiness improvements

- Fix deprecated GitHub Actions ::set-output syntax
- Add missing environment variables to .env.example
  - ANTHROPIC_API_KEY for Claude integration
  - FLOWER credentials for Celery monitoring
  - Server configuration (PORT, WORKERS, TIMEOUT)
  - Docker resource limits and configuration
- Update Dockerfile to use organization repository

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 17:25:39 -05:00
co-authored by Claude Sonnet 4.5
parent f6012feda1
commit e491f79b45
3 changed files with 23 additions and 4 deletions
+21 -2
View File
@@ -3,6 +3,9 @@ OPENAI_API_KEY=sk-proj-your-openai-api-key-here
OPENAI_MODEL=gpt-4o-mini
# OPENAI_MODEL=gpt-4o
# Anthropic Configuration
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
# Security
HTTPS_ONLY=False
SECRET_KEY=your-secret-key-here
@@ -36,5 +39,21 @@ REDDIT_CLIENT_ID=your-reddit-client-id
REDDIT_CLIENT_SECRET=your-reddit-client-secret
REDDIT_SUBREDDIT=python,kubernetes,devops,rust,selfhosted,algorithms,typescript,programming,webdev,strategy,DigitalMarketing,Entrepreneur
# Celery Configuration (optional)
# CELERY_PORT=5052
# Celery Configuration
CELERY_PORT=5052
FLOWER_USERNAME=admin
FLOWER_PASSWORD=your-flower-password-here
# Server Configuration
PORT=5051
INTERNAL_PORT=5051
WORKERS=4
TIMEOUT=120
# Docker Configuration (for compose.yaml)
IMAGE_TAG=main-latest
MEMORY_LIMIT=1024mb
MEMORY_RESERVATION=512mb
CELERY_MEMORY_LIMIT=512mb
CELERY_MEMORY_RESERVATION=256mb
DOCKER_HOST_IP=192.168.99.85
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
+1 -1
View File
@@ -13,7 +13,7 @@ RUN echo ${GIT_BRANCH}
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
ENV WORKDIR="/opt/pygentic_ai"
RUN --mount=type=ssh git clone -b ${GIT_BRANCH} git@github.com:fsecada01/Pygentic-AI.git ${WORKDIR}
RUN --mount=type=ssh git clone -b ${GIT_BRANCH} git@github.com:FJS-Services-Inc/Pygentic-AI.git ${WORKDIR}
#COPY . ${WORKDIR}
WORKDIR ${WORKDIR}