Docker Image CD #4
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: Docker Image CD | |
on: | |
workflow_run: | |
workflows: ["Docker Image CI"] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- name: Pull Docker image | |
run: sudo docker pull gsandeep04/wild-oasis:latest | |
- name: Delete Old docker container | |
run: sudo docker rm -f wild-oasis-container || true | |
- name: Run Docker Container | |
run: sudo docker run -d -p 8080:8080 --name wild-oasis-container gsandeep04/wild-oasis |