Parcourir la source

ci : publish new docker images only when the files change (#8142)

slaren il y a 1 an
Parent
commit
ae5d0f4b89
2 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 2 2
      .github/workflows/build.yml
  2. 1 0
      .github/workflows/docker.yml

+ 2 - 2
.github/workflows/build.yml

@@ -10,10 +10,10 @@ on:
   push:
   push:
     branches:
     branches:
       - master
       - master
-    paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m']
+    paths: ['.github/workflows/build.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.cuh', '**/*.swift', '**/*.m', '**/*.metal']
   pull_request:
   pull_request:
     types: [opened, synchronize, reopened]
     types: [opened, synchronize, reopened]
-    paths: ['.github/workflows/build.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.cuh', '**/*.swift', '**/*.m']
+    paths: ['.github/workflows/build.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.cuh', '**/*.swift', '**/*.m', '**/*.metal']
 
 
 concurrency:
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}

+ 1 - 0
.github/workflows/docker.yml

@@ -14,6 +14,7 @@ on:
   push:
   push:
     branches:
     branches:
       - master
       - master
+    paths: ['.github/workflows/docker.yml', '.devops/*.Dockerfile', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.cuh', '**/*.swift', '**/*.m', '**/*.metal']
 
 
 concurrency:
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}