diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 35795b68..d8581e0d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -59,6 +59,7 @@ jobs: key: ${{ secrets.PRIVATE_KEY }} port: ${{secrets.PORT}} script: | - sudo docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_PWD }} - sudo docker rm -f $(sudo docker ps -qa) - sudo docker run -d --name server -p 8080:8080 chatdiary/chatdiary-image:latest \ No newline at end of file + sudo docker ps + sudo docker pull chatdiary/chatdiary-image:latest + sudo docker run -d -p 8080:8080 chatdiary/chatdiary-image:latest + sudo docker image prune -f \ No newline at end of file