CD Pipeline #11
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: ["CI Pipeline"] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Pull Docker image | |
run: sudo docker pull othytenk/nextjs-socket-io-demo:latest | |
- name: Delete Old Docker Container | |
run: sudo docker rm -f nextjs-socket-io-demo-container || true | |
- name: Run Docker Container | |
run: sudo docker run -d -p 3000:3000 --name nextjs-socket-io-demo-container othytenk/nextjs-socket-io-demo |