测试定时执行CI

修改工作流名称
This commit is contained in:
soul-walker 2024-03-25 17:06:30 +08:00
parent 6597194b9c
commit 2a47dc5979
2 changed files with 24 additions and 1 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
name: CI-master name: 版本发布docker构建并上传
run-name: ${{ gitea.actor }} is testing out Gitea Actions run-name: ${{ gitea.actor }} is testing out Gitea Actions
on: on:
release: release: