Skip to content

Commit

Permalink
Update npm-githu.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Iqoneo6 authored Dec 4, 2024
1 parent 184a5f9 commit 7765ae0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/npm-githu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,16 @@ jobs:

- name: Push to Dockerhub
run: docker push sachin816/cicd-pipeline:latest

deploy-docker:
runs-on: self-hosted # Self-hosted runner for the deployment job

steps:
- name: Pull Docker image
run: sudo docker pull sachin816/cicd-pipeline:latest

- name: Delete Old Docker container
run: sudo docker rm -f cicd-pipeline-container || true

- name: Run Docker Container
run: sudo docker run -d -p 8080:8080 --name cicd-pipeline-container sachin816/cicd-pipeline

0 comments on commit 7765ae0

Please sign in to comment.