修改ci为local-test分支的CI,并添加SSH发布步骤 #3

Merged
shengxuqiang merged 1 commits from develop into local-test 2024-03-18 18:15:17 +08:00
Showing only changes of commit b123e8b921 - Show all commits

View File

@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions
on: on:
push: push:
branches: branches:
- develop - local-test
jobs: jobs:
Docker-Build: Docker-Build:
@ -39,16 +39,16 @@ jobs:
file: ./Dockerfile_Gitea file: ./Dockerfile_Gitea
push: true push: true
tags: | tags: |
gitea.joylink.club/joylink/rts-sim-testing-service:0.1.0 gitea.joylink.club/joylink/rts-sim-testing-service:local-test
gitea.joylink.club/joylink/rts-sim-testing-service:develop - name: 发布到本地测试环境
# - name: SSH Connect and Publish uses: https://gitea.joylink.club/appleboy/ssh-action@v1.0.3
# uses: http://120.46.212.6:3000/appleboy/ssh-action@v1.0.3 with:
# with: host: ${{ secrets.LOCAL_233_SSH_HOST }}
# host: ${{ secrets.LOCAL_SSH_HOST }} port: ${{ secrets.LOCAL_233_SSH_PORT }}
# port: ${{ secrets.LOCAL_SSH_PORT }} username: ${{ secrets.LOCAL_233_SSH_USER }}
# username: ${{ secrets.LOCAL_SSH_USER }} password: ${{ secrets.LOCAL_233_SSH_PASSWORD }}
# password: ${{ secrets.LOCAL_SSH_PASSWORD }} script: |
# script: | docker rm -f rts-sim-testing-service || echo "rts-sim-testing-service not exist"
# whoami docker pull gitea.joylink.club/joylink/rts-sim-testing-service:local-test
# sudo docker images 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 }}."