Skip to content

Commit 34451bc

Browse files
committed
CI: skip some jobs when repo != containerd/containerd
For running CI in a non-upstream repo Signed-off-by: Akihiro Suda <[email protected]> (cherry picked from commit fe0116e) > Conflicts: > .github/workflows/ci.yml > .github/workflows/codeql.yml > .github/workflows/fuzz.yml Signed-off-by: Akihiro Suda <[email protected]>
1 parent 6c00831 commit 34451bc

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
#
4141
project:
4242
name: Project Checks
43+
if: github.repository == 'containerd/containerd'
4344
runs-on: ubuntu-18.04
4445
timeout-minutes: 5
4546

@@ -112,7 +113,7 @@ jobs:
112113
# Make sure binaries compile with other platforms
113114
crossbuild:
114115
name: Crossbuild Binaries
115-
needs: [project, linters, protos, man]
116+
needs: [linters, protos, man]
116117
runs-on: ubuntu-18.04
117118
timeout-minutes: 10
118119
strategy:
@@ -190,7 +191,7 @@ jobs:
190191
name: Binaries
191192
runs-on: ${{ matrix.os }}
192193
timeout-minutes: 10
193-
needs: [project, linters, protos, man]
194+
needs: [linters, protos, man]
194195

195196
strategy:
196197
matrix:
@@ -225,7 +226,7 @@ jobs:
225226
name: Windows Integration
226227
runs-on: windows-2019
227228
timeout-minutes: 30
228-
needs: [project, linters, protos, man]
229+
needs: [linters, protos, man]
229230
env:
230231
GOTEST: gotestsum --
231232

@@ -308,7 +309,7 @@ jobs:
308309
name: Linux Integration
309310
runs-on: ubuntu-18.04
310311
timeout-minutes: 40
311-
needs: [project, linters, protos, man]
312+
needs: [linters, protos, man]
312313

313314
strategy:
314315
fail-fast: false
@@ -461,7 +462,7 @@ jobs:
461462
name: MacOS unit tests
462463
runs-on: macos-12
463464
timeout-minutes: 10
464-
needs: [project, linters, protos, man]
465+
needs: [linters, protos, man]
465466
env:
466467
GOTEST: gotestsum --
467468

@@ -487,7 +488,7 @@ jobs:
487488
# nested virtualization is only available on macOS hosts
488489
runs-on: macos-12
489490
timeout-minutes: 45
490-
needs: [project, linters, protos, man]
491+
needs: [linters, protos, man]
491492
strategy:
492493
matrix:
493494
# Currently crun is disabled to decrease CI flakiness.

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
CodeQL-Build:
13+
if: github.repository == 'containerd/containerd'
1314

1415
strategy:
1516
fail-fast: false

0 commit comments

Comments
 (0)