]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : build docker images only once daily (#10503)
authorDiego Devesa <redacted>
Mon, 25 Nov 2024 21:05:39 +0000 (22:05 +0100)
committerGitHub <redacted>
Mon, 25 Nov 2024 21:05:39 +0000 (22:05 +0100)
.github/workflows/docker.yml

index a953cdac907ae2588ba2c2a9318ee4e25829cf8d..9cef283d946e10d38f4113f7a48040377a191990 100644 (file)
 name: Publish Docker image
 
 on:
-  #pull_request:
-  push:
-    branches:
-      - master
-    paths: ['.github/workflows/docker.yml', '.devops/*.Dockerfile', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.cuh', '**/*.swift', '**/*.m', '**/*.metal']
-  workflow_dispatch: # allows manual triggering, useful for debugging
+  workflow_dispatch: # allows manual triggering
+  schedule:
+    # Rebuild daily rather than on every push because it is expensive
+    - cron: '12 4 * * *'
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
@@ -29,7 +27,6 @@ permissions:
 jobs:
   push_to_registry:
     name: Push Docker image to Docker Hub
-    #if: github.event.pull_request.draft == false
 
     runs-on: ubuntu-latest
     env: