Skip to content

Commit

Permalink
[refactor] cicd 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uommou committed Mar 24, 2024
1 parent 6cd9705 commit fbb3740
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,12 @@ jobs:
env:
DEV_ENV: ${{ secrets.DEV_ENV }}


- name: Remove old Docker image
run: docker rmi -f $(docker images -aq) || true

- name: Docker run
run: |
docker pull ${{ env.DOCKER_IMAGE }}:latest
docker stop ${{ env.NAME }} || true
docker rm ${{ env.NAME }} || true
docker rmi -f $(docker images -aq) || true
docker pull ${{ env.DOCKER_IMAGE }}:latest
docker run -d -p 80:80 --name ${{ env.NAME }} --restart always \
-e CHROMA_DB_IP_ADDRESS=${{ secrets.CHROMA_DB_IP_ADDRESS }} \
-e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
Expand Down

0 comments on commit fbb3740

Please sign in to comment.