调整任务及步骤名称
添加清理tag为none镜像步骤
This commit is contained in:
parent
5856236b12
commit
772de0b017
@ -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 }}."
|
||||
- name: 清理tag为none的镜像
|
||||
run: |
|
||||
docker rmi $(docker images --filter "dangling=true" -q)
|
Loading…
Reference in New Issue
Block a user