Skip to content

CD Pipeline

CD Pipeline #4

Workflow file for this run

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
run: sudo docker run -d -p 3030:3030 --name ai-nest -e ${{secrets.OPENAI_API_KEY}} jinseung0327/ai-nest