From 36788e962d2dce5fbe7c33b7f1b56b7b17c858e2 Mon Sep 17 00:00:00 2001 From: wlstmd Date: Wed, 10 Jul 2024 14:52:11 +0900 Subject: [PATCH] feat: pipeline --- .github/workflows/pipeline.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index dc60f41..1028366 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -13,9 +13,14 @@ jobs: steps: - name: Pull Docker image run: sudo docker pull jinseung0327/ai-nest:latest + - name: Delete Old docker container run: sudo docker rm -f ai-nest || true + - name: Run Docker Container env: OPENAI_API_KEY: ${{secrets.OPENAI_API_KEY}} - run: sudo docker run -d -p 3030:3030 --name ai-nest -e $OPENAI_API_KEY jinseung0327/ai-nest + run: | + sudo docker run -d -p 3030:3030 --name ai-nest \ + -e OPENAI_API_KEY="${OPENAI_API_KEY}" \ + jinseung0327/ai-nest