From 2a47dc597963478430c2e557b80b1dcc5a22162c Mon Sep 17 00:00:00 2001 From: soul-walker Date: Mon, 25 Mar 2024 17:06:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=AE=9A=E6=97=B6=E6=89=A7?= =?UTF-8?q?=E8=A1=8CCI=20=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/CD_pub_deploy.yaml | 23 +++++++++++++++++++ .../{CI_master.yaml => CI_release_build.yaml} | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/CD_pub_deploy.yaml rename .gitea/workflows/{CI_master.yaml => CI_release_build.yaml} (97%) 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 97% 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: