CD Pipeline #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD Pipeline | |
on: | |
workflow_run: | |
workflows: ['Docker Image CI'] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: self-hosted | |
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 |