Skip to content

Commit

Permalink
Merge pull request #28 from studio-recoding/feat/cicd
Browse files Browse the repository at this point in the history
[chore] cicd test
  • Loading branch information
uommou authored Mar 23, 2024
2 parents ff6c98c + a4492a1 commit d2dd835
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
echo "CHROMA_DB_IP_ADDRESS=${{ secrets.CHROMA_DB_IP_ADDRESS }}" >> .env
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> .env
shell: bash

- name: Setup docker buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -84,4 +84,7 @@ jobs:
docker pull ${{ env.DOCKER_IMAGE }}:latest
docker stop ${{ env.NAME }} || true
docker rm ${{ env.NAME }} || true
docker run -d -p 3000:3000 --name ${{ env.NAME }} --restart always ${{ env.DOCKER_IMAGE }}:latest
docker run -d -p 3000:3000 --name ${{ env.NAME }} --restart always ${{ env.DOCKER_IMAGE }}:latest \
-e CHROMA_DB_IP_ADDRESS=${{ secrets.CHROMA_DB_IP_ADDRESS }} \
-e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
${{ env.DOCKER_IMAGE }}:latest

0 comments on commit d2dd835

Please sign in to comment.