|
1 | 1 | name: Cilium Integration Tests |
2 | 2 | on: |
3 | | - push: |
4 | | - branches: |
5 | | - - v1.32 |
6 | | - pull_request_target: |
7 | | - types: |
8 | | - - opened |
9 | | - - reopened |
10 | | - - synchronize |
11 | | - branches: |
12 | | - - v1.32 |
| 3 | + workflow_call: |
| 4 | + inputs: |
| 5 | + repository: |
| 6 | + description: 'Github Repository to run the workflow on.' |
| 7 | + type: string |
| 8 | + required: true |
| 9 | + default: cilium/proxy |
| 10 | + commit_ref: |
| 11 | + description: 'Git commit ref for image.' |
| 12 | + type: string |
| 13 | + required: true |
13 | 14 |
|
14 | 15 | concurrency: |
15 | | - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }} |
| 16 | + group: ${{ github.workflow }}-${{ inputs.repository || github.event.pull_request.number || github.event.after }} |
16 | 17 | cancel-in-progress: true |
17 | 18 |
|
18 | 19 | # By specifying the access of one of the scopes, all of those that are not specified are set to 'none'. |
@@ -45,11 +46,11 @@ jobs: |
45 | 46 | echo "PROXY_GITHUB_REPO=github.com/cilium/proxy" >> $GITHUB_ENV |
46 | 47 |
|
47 | 48 | - name: Prepare variables for PR |
48 | | - if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' |
| 49 | + if: inputs.commit_ref != '' |
49 | 50 | run: | |
50 | 51 | echo "PROXY_IMAGE=quay.io/cilium/cilium-envoy-dev" >> $GITHUB_ENV |
51 | | - echo "PROXY_TAG=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV |
52 | | - echo "PROXY_GITHUB_REPO=github.com/${{github.event.pull_request.head.repo.full_name}}" >> $GITHUB_ENV |
| 52 | + echo "PROXY_TAG=${{ inputs.commit_ref }}" >> $GITHUB_ENV |
| 53 | + echo "PROXY_GITHUB_REPO=github.com/${{ inputs.repository }}" >> $GITHUB_ENV |
53 | 54 |
|
54 | 55 | - name: Checkout Cilium ${{ env.CILIUM_REPO_REF }} |
55 | 56 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
@@ -177,11 +178,10 @@ jobs: |
177 | 178 | shell: bash |
178 | 179 | run: cilium sysdump --output-filename cilium-sysdump-final |
179 | 180 |
|
180 | | - |
181 | | - - name: Upload Cilium system dump |
182 | | - if: failure() |
183 | | - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
184 | | - with: |
185 | | - name: cilium-integration-test-sysdumps |
186 | | - path: cilium-sysdump-*.zip |
187 | | - retention-days: 5 |
| 181 | + - name: Upload Cilium system dump |
| 182 | + if: failure() |
| 183 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
| 184 | + with: |
| 185 | + name: cilium-integration-test-sysdumps |
| 186 | + path: cilium-sysdump-*.zip |
| 187 | + retention-days: 5 |
0 commit comments