修改local-test工作流定义
All checks were successful
CI / Docker-Build (push) Successful in 7m33s

This commit is contained in:
soul-walker 2024-03-19 21:52:16 +08:00
parent a180682b82
commit df535cc73c

View File

@ -16,7 +16,9 @@ jobs:
- name: 设置node环境 - name: 设置node环境
uses: https://gitea.joylink.club/actions/setup-node@v4 uses: https://gitea.joylink.club/actions/setup-node@v4
with: with:
node-version: '18.x' node-version: 18
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: 安装yarn,并run build - name: 安装yarn,并run build
run: | run: |
node -v node -v
@ -27,14 +29,17 @@ jobs:
yarn yarn
yarn run build:test yarn run build:test
- name: 发布到本地测试环境 - name: 发布到本地测试环境
uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3 run: |
with: tar czvf ./dist.tar.gz ./dist
host: ${{ secrets.LOCAL_233_SSH_HOST }} ls -lh
port: ${{ secrets.LOCAL_233_SSH_PORT }} # uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
username: ${{ secrets.LOCAL_233_SSH_USER }} # with:
password: ${{ secrets.LOCAL_233_SSH_PASSWORD }} # host: ${{ secrets.LOCAL_233_SSH_HOST }}
script: | # port: ${{ secrets.LOCAL_233_SSH_PORT }}
docker rm -f rts-sim-testing-service || echo "rts-sim-testing-service not exist" # username: ${{ secrets.LOCAL_233_SSH_USER }}
docker pull gitea.joylink.club/joylink/rts-sim-testing-service:local-test # password: ${{ secrets.LOCAL_233_SSH_PASSWORD }}
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 # 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 }}." - run: echo "This job's status is ${{ job.status }}."