File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,14 @@ name: Build and push agent container image
22
33# Configures this workflow to run every time a tag is created
44on :
5+ pull_request :
6+ branches :
7+ - main
58 push :
9+ branches :
10+ - main
11+ tags :
12+ - agent/*
613 paths :
714 - agent/**
815 - containers/agent.Dockerfile
2027# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
2128jobs :
2229 build-and-push-agent :
23- if : ${{ ! startsWith(github.ref, 'refs/tags/operator') }}
30+ if : ${{ ( ! startsWith(github.ref, 'refs/tags/operator')) && ( startsWith(github.ref, 'pull/') || github.ref == 'refs/heads/main') }}
2431 runs-on : ubuntu-latest
2532 # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2633 permissions :
You can’t perform that action at this time.
0 commit comments