From feb8edeb44f4cc5ef1846593693e3c99c5a4526c Mon Sep 17 00:00:00 2001 From: soul-walker Date: Tue, 19 Mar 2024 21:41:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?submodule=20=E5=9C=B0=E5=9D=80=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20local-test=E6=8C=81=E7=BB=AD=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=9B=86=E6=88=90=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/CI_local_test.yaml | 40 +++++++++++++++++++++++++++++ .gitmodules | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/CI_local_test.yaml diff --git a/.gitea/workflows/CI_local_test.yaml b/.gitea/workflows/CI_local_test.yaml new file mode 100644 index 0000000..0abb11e --- /dev/null +++ b/.gitea/workflows/CI_local_test.yaml @@ -0,0 +1,40 @@ +name: CI +run-name: ${{ gitea.actor }} is testing out Gitea Actions +on: + push: + branches: + - local-test + +jobs: + Docker-Build: + runs-on: joylink-local233 + steps: + - name: 检出代码 + uses: https://gitea.joylink.club/actions/checkout@v4 + with: + submodules: recursive + - name: 设置node环境 + uses: https://gitea.joylink.club/actions/setup-node@v4 + with: + node-version: '18.x' + - name: 安装yarn,并run build + run: | + node -v + npm -v + npm config set registry https://registry.npmmirror.com + npm install --global yarn + yarn config set registry https://registry.npmmirror.com + yarn + yarn run build:test + - 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 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 }}." diff --git a/.gitmodules b/.gitmodules index cab02a5..938789b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "rts-sim-testing-message"] path = rts-sim-testing-message - url = http://120.46.212.6:3000/joylink/rts-sim-testing-message.git + url = https://gitea.joylink.club/joylink/rts-sim-testing-message.git From 3b8c7d2b0084167025c456604962249ccc2dd300 Mon Sep 17 00:00:00 2001 From: soul-walker Date: Tue, 19 Mar 2024 21:42:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?message=E6=A8=A1=E5=9D=97=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rts-sim-testing-message | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts-sim-testing-message b/rts-sim-testing-message index 225f92b..cd59464 160000 --- a/rts-sim-testing-message +++ b/rts-sim-testing-message @@ -1 +1 @@ -Subproject commit 225f92b91cd0ff0371b9fd785f91ddf05903ea8a +Subproject commit cd5946438c5100f5685877ea5ce632fd5b5962a7