Skip to content

Commit

Permalink
Create docker-image-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeElixir authored Feb 10, 2024
1 parent 85f9608 commit d264477
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-image-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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

0 comments on commit d264477

Please sign in to comment.