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:
|
||||
schedule:
|
||||
- cron: '*/10 * * * *' # every 10 minutes
|
||||
# push:
|
||||
- cron: '0 0 * * *' # every day at midnight UTC
|
||||
# branches:
|
||||
# - dev
|
||||
workflow_dispatch: # 允许手动触发工作流
|
||||
|
|
@ -147,8 +146,8 @@ jobs:
|
|||
with:
|
||||
images: ${{ secrets.DOCKERHUB_USERNAME }}/maibot
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=sha,prefix=${{ github.ref_name }}-,enable=${{ github.ref_type == 'branch' }}
|
||||
type=raw,value=dev
|
||||
type=schedule,pattern=dev-{{date 'YYMMDD'}}
|
||||
|
||||
- name: Create and Push Manifest
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue