[修改]发布配置文件
This commit is contained in:
parent
99a772a050
commit
0d10203613
@ -56,6 +56,6 @@ jobs:
|
|||||||
docker rm -f rt-sim-training-service || echo "rt-sim-training-service not exist"
|
docker rm -f rt-sim-training-service || echo "rt-sim-training-service not exist"
|
||||||
docker pull gitea.joylink.club/joylink/rt-sim-training-service:local-test
|
docker pull gitea.joylink.club/joylink/rt-sim-training-service:local-test
|
||||||
docker run --name rt-sim-training-service --restart=always --network net --ip 192.168.53.3 -d -e APP_ENV=local-test -p 9000:9000 -p 19000:19000 -v /usr/local/joylink/logs/rtss:/usr/local/joylink/logs/rtss gitea.joylink.club/joylink/rt-sim-training-service:local-test
|
docker run --name rt-sim-training-service --restart=always --network net --ip 192.168.53.3 -d -e APP_ENV=local-test -p 9000:9000 -p 19000:19000 -v /usr/local/joylink/logs/rtss:/usr/local/joylink/logs/rtss gitea.joylink.club/joylink/rt-sim-training-service:local-test
|
||||||
- name: 清理tag为none的镜像
|
# - name: 清理tag为none的镜像
|
||||||
run: |
|
# run: |
|
||||||
docker rmi $(docker images --filter "dangling=true" -q)
|
# docker rmi $(docker images --filter "dangling=true" -q --no-trunc) 2>/dev/null || echo "No dangling images to remove"
|
@ -2,7 +2,7 @@ name: 版本发布docker构建并上传
|
|||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [ published ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Docker-Build-Push:
|
Docker-Build-Push:
|
||||||
@ -45,9 +45,9 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
gitea.joylink.club/joylink/rt-sim-training-service:${{ github.event.release.tag_name }}
|
gitea.joylink.club/joylink/rt-sim-training-service:${{ github.event.release.tag_name }}
|
||||||
gitea.joylink.club/joylink/rt-sim-training-service:latest
|
gitea.joylink.club/joylink/rt-sim-training-service:latest
|
||||||
- name: 清理tag为none的镜像
|
# - name: 清理tag为none的镜像
|
||||||
run: |
|
# run: |
|
||||||
docker rmi $(docker images --filter "dangling=true" -q)
|
# docker rmi $(docker images --filter "dangling=true" -q --no-trunc) 2>/dev/null || echo "No dangling images to remove"
|
||||||
# - name: 发布到本地测试环境
|
# - name: 发布到本地测试环境
|
||||||
# uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
|
# uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
|
||||||
# with:
|
# with:
|
||||||
|
Loading…
Reference in New Issue
Block a user