Skip to content

Commit 24f6275

Browse files
committed
fix(ci/github/agent-container): set the right build conditionals
1 parent 9a5c4b9 commit 24f6275

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/agent-container.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
branches:
77
- main
8+
paths:
9+
- agent/**
10+
- containers/agent.Dockerfile
11+
- .github/workflows/agent-container.yaml
812
push:
913
branches:
1014
- main
@@ -27,7 +31,6 @@ env:
2731
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
2832
jobs:
2933
build-and-push-agent:
30-
if: ${{ (! startsWith(github.ref, 'refs/tags/operator')) && ( startsWith(github.ref, 'pull/') || github.ref == 'refs/heads/main')}}
3134
runs-on: ubuntu-latest
3235
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
3336
permissions:

0 commit comments

Comments
 (0)