diff --git a/.gitea/workflows/CD_pub_deploy.yaml b/.gitea/workflows/CD_pub_deploy.yaml new file mode 100644 index 000000000..f80ccf9d4 --- /dev/null +++ b/.gitea/workflows/CD_pub_deploy.yaml @@ -0,0 +1,23 @@ +name: 公网服务发布 +run-name: ${{ gitea.actor }} is testing out Gitea Actions +on: + schedule: + - cron: '*/2 * * * *' # 每2分钟执行一次 + +jobs: + Docker-Build-Push: + runs-on: joylink-local233 + steps: + - name: 测试定时执行任务 + run: echo "测试定时执行任务" + # - name: 发布到本地测试环境 + # uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3 + # with: + # host: ${{ secrets.LOCAL_233_SSH_HOST }} + # port: ${{ secrets.LOCAL_233_SSH_PORT }} + # username: ${{ secrets.LOCAL_233_SSH_USER }} + # password: ${{ secrets.LOCAL_233_SSH_PASSWORD }} + # script: | + # docker rm -f rt-sim-training-service || echo "rt-sim-training-service not exist" + # docker pull gitea.joylink.club/joylink/rt-sim-training-service:latest + # docker run --name rt-sim-training-service --restart=always --network net --ip 192.168.53.3 -d -e APP_ENV=prd -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:latest \ No newline at end of file diff --git a/.gitea/workflows/CI_master.yaml b/.gitea/workflows/CI_release_build.yaml similarity index 98% rename from .gitea/workflows/CI_master.yaml rename to .gitea/workflows/CI_release_build.yaml index 662d8a8c7..cc7b19321 100644 --- a/.gitea/workflows/CI_master.yaml +++ b/.gitea/workflows/CI_release_build.yaml @@ -1,4 +1,4 @@ -name: CI-master +name: 版本发布docker构建并上传 run-name: ${{ gitea.actor }} is testing out Gitea Actions on: release: