Skip to content

Commit 50d5cec

Browse files
authored
ci : build docker images only once daily (#10503)
1 parent 9fd8c26 commit 50d5cec

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
name: Publish Docker image
1111

1212
on:
13-
#pull_request:
14-
push:
15-
branches:
16-
- master
17-
paths: ['.github/workflows/docker.yml', '.devops/*.Dockerfile', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.cuh', '**/*.swift', '**/*.m', '**/*.metal']
18-
workflow_dispatch: # allows manual triggering, useful for debugging
13+
workflow_dispatch: # allows manual triggering
14+
schedule:
15+
# Rebuild daily rather than on every push because it is expensive
16+
- cron: '12 4 * * *'
1917

2018
concurrency:
2119
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
@@ -29,7 +27,6 @@ permissions:
2927
jobs:
3028
push_to_registry:
3129
name: Push Docker image to Docker Hub
32-
#if: github.event.pull_request.draft == false
3330

3431
runs-on: ubuntu-latest
3532
env:

0 commit comments

Comments
 (0)