From c95a76789d80f101361025ea4d333a2884a0a89e Mon Sep 17 00:00:00 2001 From: nonaninona Date: Tue, 2 Jan 2024 00:44:00 +0900 Subject: [PATCH] fix : edit scrtips --- .github/workflows/gradle.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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