Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
KimMinWoooo committed Sep 4, 2024
1 parent 6069904 commit 182f232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ jobs:
docker push $DOCKER_HUB_USERNAME/backend:latest
cd ../ai
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> .env
docker build -t $DOCKER_HUB_USERNAME/ai:latest .
docker build --build-arg OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}" -t $DOCKER_HUB_USERNAME/ai:latest .
docker push $DOCKER_HUB_USERNAME/ai:latest
# Backend 서비스 배포 (AWS Systems Manager 사용)
Expand Down
3 changes: 2 additions & 1 deletion ai/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN pip install --no-cache-dir -r requirements.txt
# 프로젝트 파일 복사
COPY . .

COPY .env .env
ARG OPENAI_API_KEY
ENV OPENAI_API_KEY=$OPENAI_API_KEY

# 데이터 저장을 위한 디렉토리 생성
RUN mkdir -p /app/data
Expand Down

0 comments on commit 182f232

Please sign in to comment.