CD Pipeline #22
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 mrsunglasses/pastepy | |
- name: Delete Old docker container | |
run: sudo docker rm -f pastepyprod || true | |
- name: Run Docker Container | |
run: sudo docker run -d -p 8080:8080 --name pastepyprod mrsunglasses/pastepy |