Skip to content

Commit

Permalink
update :: master cd workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
esperar committed Sep 24, 2024
1 parent a7c5344 commit dca2023
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotori-master-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}

- name: Stop Docker container
- name: Docker stop container
run: sudo docker rm -f dotori-prod 2>/dev/null || true

- name: Docker remove Image
run: sudo docker rmi ${{secrets.DOCKERHUB_USERNAME}}/dotori-prod

- name: Pull Docker image
run: sudo docker pull ${{secrets.DOCKERHUB_USERNAME}}/dotori-prod

- name: Run Docker Container
run: sudo docker run --net="host" --name dotori --rm -d -p 8080:8080 ${{secrets.DOCKERHUB_USERNAME}}/dotori-prod

- name: Delete old docker images
run: sudo docker system prune -f
run: sudo docker run --net="host" --name dotori-prod --rm -d -p 8080:8080 ${{secrets.DOCKERHUB_USERNAME}}/dotori-prod

0 comments on commit dca2023

Please sign in to comment.