From 56a586114369784af40b8a15837f9b7e309a3cf1 Mon Sep 17 00:00:00 2001 From: chenxudong2020 <872603935@qq.com> Date: Sun, 13 Oct 2024 07:42:12 +0800 Subject: [PATCH] Update image-build.yml --- .github/workflows/image-build.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/image-build.yml b/.github/workflows/image-build.yml index 57729fd..a8c7991 100644 --- a/.github/workflows/image-build.yml +++ b/.github/workflows/image-build.yml @@ -1,11 +1,14 @@ name: Build and Push Docker Image on: - push: - branches: - - master schedule: - - cron: '0 0 * * *' # 每天的 0 点执行 + - cron: '0 18 * * 0,2,4,6' + workflow_dispatch: + inputs: + clean_cache: + description: 'Clear caches' + required: false + type: boolean jobs: build: @@ -21,8 +24,7 @@ jobs: - name: Modify run : | - sh copy.sh - + sh copy.sh - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2