fix: 更新定时任务的 cron 表达式为每天执行一次,并调整 Docker 镜像标签格式
This commit is contained in:
7
.github/workflows/docker-image-dev.yml
vendored
7
.github/workflows/docker-image-dev.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user