This repository was archived by the owner on Oct 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,22 @@ concurrency:
66
77on :
88 workflow_dispatch :
9+ pull_request :
10+ branches :
11+ - main
12+ - master
13+ - v[0-9]+
14+ - v[0-9]+.[0-9]+
15+ - cryostat-v[0-9]+.[0-9]+
16+ - go-*
917 push :
1018 branches :
1119 - main
1220 - master
1321 - v[0-9]+
1422 - v[0-9]+.[0-9]+
1523 - cryostat-v[0-9]+.[0-9]+
24+ - go-*
1625 tags :
1726 - ' *'
1827
2736 build :
2837 runs-on : ubuntu-latest
2938 steps :
30- - uses : actions/checkout@v2
39+ - uses : actions/checkout@v4
3140 - name : Install qemu
3241 continue-on-error : false
42+ if : github.event_name != 'pull_request'
3343 run : |
3444 sudo apt-get update
3545 sudo apt-get install -y qemu-user-static
5565 uses : redhat-actions/buildah-build@v2
5666 with :
5767 image : ${{ env.CI_IMG }}
58- archs : amd64, arm64
59- tags : ${{ github.ref_name }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }} ${{ env.DATE_TAG }} ${{ steps.check-branch.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag-patch }} ${{ steps.check-commit.outputs.image-tag-release }}
68+ archs : ${{ github.event_name == 'pull_request' && ' amd64' || 'amd64 , arm64' }}
69+ tags : ${{ github.event_name != 'pull_request' && github. ref_name || '' }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }} ${{ env.DATE_TAG }} ${{ steps.check-branch.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag-patch }} ${{ steps.check-commit.outputs.image-tag-release }}
6070 containerfiles : |
6171 ./Containerfile
6272 - name : Push to quay.io
6878 registry : ${{ env.CI_REGISTRY }}
6979 username : ${{ env.CI_USER }}
7080 password : ${{ secrets.REGISTRY_PASSWORD }}
71- if : ${{ github.repository_owner == 'cryostatio' }}
81+ if : ${{ github.repository_owner == 'cryostatio' && github.event_name != 'pull_request' }}
7282 - name : Print image URL
7383 run : echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
74- if : ${{ github.repository_owner == 'cryostatio' }}
84+ if : ${{ github.repository_owner == 'cryostatio' && github.event_name != 'pull_request' }}
You can’t perform that action at this time.
0 commit comments