Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
km2535 authored Aug 29, 2024
1 parent 7793b79 commit f798969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ jobs:
sudo docker pull ${{ secrets.DOCKERHUB_CONTAINERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
# Stop and remove the existing container if it exists
sudo docker ps -q -f name=speech2 | xargs -r sudo docker stop
sudo docker ps -q -f name=speechup-spring | xargs -r sudo docker stop
sudo docker images --filter "dangling=true" -q | xargs sudo docker rmi
sudo docker ps -a -q -f name=speech2 | xargs -r sudo docker rm
sudo docker ps -a -q -f name=speechup-spring | xargs -r sudo docker rm
# Run the new container with environment variables
sudo docker run -d \
-p 8080:8080 \
--name speech2 \
--name speechup-spring -v /root/logs/:/root/logs/ \
${{ secrets.DOCKERHUB_CONTAINERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
# Clean up old Docker images on the server
Expand Down

0 comments on commit f798969

Please sign in to comment.