mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 更新定时任务的 cron 表达式为每天执行一次,并调整 Docker 镜像标签格式
parent
8d28f26b7d
commit
dec4e758fa
|
|
@ -2,8 +2,7 @@ name: Docker Build and Push (Dev)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '*/10 * * * *' # every 10 minutes
|
- cron: '0 0 * * *' # every day at midnight UTC
|
||||||
# push:
|
|
||||||
# branches:
|
# branches:
|
||||||
# - dev
|
# - dev
|
||||||
workflow_dispatch: # 允许手动触发工作流
|
workflow_dispatch: # 允许手动触发工作流
|
||||||
|
|
@ -147,8 +146,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: ${{ secrets.DOCKERHUB_USERNAME }}/maibot
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/maibot
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=raw,value=dev
|
||||||
type=sha,prefix=${{ github.ref_name }}-,enable=${{ github.ref_type == 'branch' }}
|
type=schedule,pattern=dev-{{date 'YYMMDD'}}
|
||||||
|
|
||||||
- name: Create and Push Manifest
|
- name: Create and Push Manifest
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue