Skip to content

Commit

Permalink
chore: Update CI to skip docker image build if Rust checks fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoch committed Jan 8, 2025
1 parent ce69bd5 commit ca07eca
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ name: Build and push docker image to internal registry

on:
workflow_call:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build inference-benchmarker

on:
workflow_dispatch:
workflow_call:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
- use: ./.github/workflows/rust.yaml
- use: ./.github/workflows/build.yaml
14 changes: 3 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
name: Rust checks

on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
paths:
- 'src/**'
- .github/workflows/rust.yml
workflow_call:

name: Rust checks
permissions:
pull-requests: write
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Secret Leaks

on:
push:

name: Secret Leaks

jobs:
trufflehog:
runs-on:
Expand Down

0 comments on commit ca07eca

Please sign in to comment.