Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cyzlcyzl authored Dec 15, 2023
1 parent 844a8a4 commit 7b66eac
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: |
docker stop my-was
docker rm my-was
docker image rm ${{ secrets.DOCKER_REPO }}
docker run -d -p 8080:8080 \
-v /root/my-proj/resources:/app/resources \
--name my-was ${{ secrets.DOCKER_REPO }}
sudo docker stop prod-server
sudo docker rm prod-server
sudo docker image rm ${{ secrets.DOCKER_REPO }}
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker run -d -p 80:8080 ${{ secrets.DOCKER_REPO }}

0 comments on commit 7b66eac

Please sign in to comment.