From 772de0b017d2bb2676ae2d7887f8f59e4e53909a Mon Sep 17 00:00:00 2001 From: soul-walker Date: Wed, 27 Mar 2024 16:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=BB=E5=8A=A1=E5=8F=8A?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E5=90=8D=E7=A7=B0=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B8=85=E7=90=86tag=E4=B8=BAnone=E9=95=9C=E5=83=8F=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/CI_local_test.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/CI_local_test.yaml b/.gitea/workflows/CI_local_test.yaml index 788ed4e..f7226c8 100644 --- a/.gitea/workflows/CI_local_test.yaml +++ b/.gitea/workflows/CI_local_test.yaml @@ -1,4 +1,4 @@ -name: CI +name: local-test分支打包构建docker并发布运行 run-name: ${{ gitea.actor }} is testing out Gitea Actions on: push: @@ -41,7 +41,7 @@ jobs: push: true tags: | gitea.joylink.club/joylink/rts-sim-testing-service:local-test - - name: 发布到本地测试环境 + - name: 发布到服务器 uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.LOCAL_233_SSH_HOST }} @@ -52,4 +52,6 @@ jobs: docker rm -f rts-sim-testing-service || echo "rts-sim-testing-service not exist" docker pull gitea.joylink.club/joylink/rts-sim-testing-service:local-test docker run --name rts-sim-testing-service --restart=always --network net --ip 192.168.53.191 -d -p 9091:9091 -v /usr/local/joylink/logs/bjrtsts:/logs/bjrtsts gitea.joylink.club/joylink/rts-sim-testing-service:local-test rts-sim-testing-service -config test_local - - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file + - name: 清理tag为none的镜像 + run: | + docker rmi $(docker images --filter "dangling=true" -q) \ No newline at end of file