Skip to content

Commit

Permalink
ci: run image-build.yaml when Containerfiles are updated
Browse files Browse the repository at this point in the history
Currently, image-build.yaml, which is used to build and push all related
container images to quay.io, is run when PR is merged or a PR is updated
and image-build.yaml file itself is modified. A new rule needs to be
added such that image-build.yaml is run when a PR is updated and one of
the Containerfile files is modified.

Signed-off-by: Billy McFall <[email protected]>
  • Loading branch information
Billy99 committed Sep 12, 2024
1 parent 6d7bfdd commit 28d77a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: bpfman-image-build
name: operator-image-build

on: # yamllint disable-line rule:truthy
push:
Expand All @@ -7,7 +7,10 @@ on: # yamllint disable-line rule:truthy
- v*

pull_request:
paths: [.github/workflows/image-build.yaml]
paths:
- .github/workflows/image-build.yaml
- Containerfile.bpfman-agent
- Containerfile.bpfman-operator

jobs:
build-and-push-images:
Expand Down

0 comments on commit 28d77a6

Please sign in to comment.