Skip to content

Commit

Permalink
CI: skip some jobs when repo != containerd/containerd
Browse files Browse the repository at this point in the history
For running CI in a non-upstream repo

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit fe0116e)
> Conflicts:
>	.github/workflows/ci.yml
>	.github/workflows/codeql.yml
>	.github/workflows/fuzz.yml
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Feb 10, 2023
1 parent 6c00831 commit 34451bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
#
project:
name: Project Checks
if: github.repository == 'containerd/containerd'
runs-on: ubuntu-18.04
timeout-minutes: 5

Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
# Make sure binaries compile with other platforms
crossbuild:
name: Crossbuild Binaries
needs: [project, linters, protos, man]
needs: [linters, protos, man]
runs-on: ubuntu-18.04
timeout-minutes: 10
strategy:
Expand Down Expand Up @@ -190,7 +191,7 @@ jobs:
name: Binaries
runs-on: ${{ matrix.os }}
timeout-minutes: 10
needs: [project, linters, protos, man]
needs: [linters, protos, man]

strategy:
matrix:
Expand Down Expand Up @@ -225,7 +226,7 @@ jobs:
name: Windows Integration
runs-on: windows-2019
timeout-minutes: 30
needs: [project, linters, protos, man]
needs: [linters, protos, man]
env:
GOTEST: gotestsum --

Expand Down Expand Up @@ -308,7 +309,7 @@ jobs:
name: Linux Integration
runs-on: ubuntu-18.04
timeout-minutes: 40
needs: [project, linters, protos, man]
needs: [linters, protos, man]

strategy:
fail-fast: false
Expand Down Expand Up @@ -461,7 +462,7 @@ jobs:
name: MacOS unit tests
runs-on: macos-12
timeout-minutes: 10
needs: [project, linters, protos, man]
needs: [linters, protos, man]
env:
GOTEST: gotestsum --

Expand All @@ -487,7 +488,7 @@ jobs:
# nested virtualization is only available on macOS hosts
runs-on: macos-12
timeout-minutes: 45
needs: [project, linters, protos, man]
needs: [linters, protos, man]
strategy:
matrix:
# Currently crun is disabled to decrease CI flakiness.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
CodeQL-Build:
if: github.repository == 'containerd/containerd'

strategy:
fail-fast: false
Expand Down

0 comments on commit 34451bc

Please sign in to comment.