Skip to content

Commit 3f194bd

Browse files
committed
ubuntu24.04 ci pipeline fix
Signed-off-by: shiva kumar <[email protected]>
1 parent 6e46d19 commit 3f194bd

File tree

1 file changed

+10
-46
lines changed

1 file changed

+10
-46
lines changed

.github/workflows/precompiled.yaml

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,6 @@ jobs:
6666
driver_branch: ${{ fromJson(needs.set-driver-version-matrix.outputs.driver_branch) }}
6767
flavor: ${{ fromJson(needs.set-driver-version-matrix.outputs.kernel_flavors) }}
6868
dist: ${{ fromJson(needs.set-driver-version-matrix.outputs.dist) }}
69-
ispr:
70-
- ${{github.event_name == 'pull_request'}}
71-
exclude:
72-
- ispr: true
73-
dist: ubuntu20.04
74-
driver_branch: 535
75-
- ispr: true
76-
dist: ubuntu20.04
77-
driver_branch: 550
78-
- dist: ubuntu24.04
79-
driver_branch: 535
8069
steps:
8170
- uses: actions/checkout@v4
8271
name: Check out code
@@ -85,10 +74,18 @@ jobs:
8574
run: |
8675
echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
8776
echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
88-
REPO_FULL_NAME="${{ github.repository }}"
77+
REPO_FULL_NAME="${{ github.event.pull_request.head.repo.full_name }}"
78+
echo "${REPO_FULL_NAME}"
8979
echo "LABEL_IMAGE_SOURCE=https://github.com/${REPO_FULL_NAME}" >> $GITHUB_ENV
9080
9181
GENERATE_ARTIFACTS="false"
82+
if [[ "${{ github.actor }}" == "dependabot[bot]" ]]; then
83+
GENERATE_ARTIFACTS="false"
84+
elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.head.repo.full_name }}" == "${{ github.repository }}" ]]; then
85+
GENERATE_ARTIFACTS="true"
86+
elif [[ "${{ github.event_name }}" == "push" ]]; then
87+
GENERATE_ARTIFACTS="true"
88+
fi
9289
echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
9390
echo "BUILD_MULTI_ARCH_IMAGES=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
9491
@@ -119,7 +116,7 @@ jobs:
119116
done
120117
- name: Build image
121118
env:
122-
IMAGE_NAME: ghcr.io/nvidia/driver
119+
IMAGE_NAME: ghcr.io/${LOWERCASE_REPO_OWNER}/driver
123120
VERSION: ${COMMIT_SHORT_SHA}
124121
PRECOMPILED: "true"
125122
DIST: signed_${{ matrix.dist }}
@@ -151,17 +148,6 @@ jobs:
151148
strategy:
152149
matrix:
153150
dist: ${{ fromJson(needs.set-driver-version-matrix.outputs.dist) }}
154-
ispr:
155-
- ${{github.event_name == 'pull_request'}}
156-
exclude:
157-
- ispr: true
158-
dist: ubuntu20.04
159-
driver_branch: 535
160-
- ispr: true
161-
dist: ubuntu20.04
162-
driver_branch: 550
163-
- dist: ubuntu24.04
164-
driver_branch: 535
165151
needs:
166152
- precompiled-build-image
167153
- set-driver-version-matrix
@@ -215,17 +201,6 @@ jobs:
215201
matrix:
216202
kernel_version: ${{ fromJson(needs.determine-e2e-test-matrix.outputs.matrix_values) }}
217203
dist: ${{ fromJson(needs.set-driver-version-matrix.outputs.dist) }}
218-
ispr:
219-
- ${{github.event_name == 'pull_request'}}
220-
exclude:
221-
- ispr: true
222-
dist: ubuntu20.04
223-
driver_branch: 535
224-
- ispr: true
225-
dist: ubuntu20.04
226-
driver_branch: 550
227-
- dist: ubuntu24.04
228-
driver_branch: 535
229204
steps:
230205
- name: Check out code
231206
uses: actions/checkout@v4
@@ -341,17 +316,6 @@ jobs:
341316
driver_branch: ${{ fromJson(needs.set-driver-version-matrix.outputs.driver_branch) }}
342317
kernel_version: ${{ fromJson(needs.determine-e2e-test-matrix.outputs.matrix_values) }}
343318
dist: ${{ fromJson(needs.set-driver-version-matrix.outputs.dist) }}
344-
ispr:
345-
- ${{github.event_name == 'pull_request'}}
346-
exclude:
347-
- ispr: true
348-
dist: ubuntu20.04
349-
driver_branch: 535
350-
- ispr: true
351-
dist: ubuntu20.04
352-
driver_branch: 550
353-
- dist: ubuntu24.04
354-
driver_branch: 535
355319
steps:
356320
- name: Check out code
357321
uses: actions/checkout@v4

0 commit comments

Comments
 (0)