File tree Expand file tree Collapse file tree 2 files changed +87
-325
lines changed Expand file tree Collapse file tree 2 files changed +87
-325
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ stages:
2828 - test
2929 - scan
3030 - release
31- - sign
31+ - ngc-publish
3232
3333.pipeline-trigger-rules :
3434 rules :
@@ -170,12 +170,17 @@ trigger-pipeline:
170170
171171.release-generic :
172172 stage : release
173+ allow_failure : true
173174 variables :
174175 # Define the source image for the release
175176 IMAGE_NAME : " ${CI_REGISTRY_IMAGE}"
176177 VERSION : " ${CI_COMMIT_SHORT_SHA}"
177178 # OUT_VERSION is overridden for external releases
178179 OUT_VERSION : " ${CI_COMMIT_SHORT_SHA}"
180+ OUT_DIST : " ${DIST}"
181+ artifacts :
182+ paths :
183+ - build-info-${DRIVER_VERSION}-${OUT_DIST}.txt
179184 before_script :
180185 - !reference [.regctl-setup, before_script]
181186 # We ensure the OUT_IMAGE_NAME is set
@@ -188,6 +193,12 @@ trigger-pipeline:
188193 - ' [ ${CI_REGISTRY} = ${OUT_REGISTRY} ] || regctl registry login "${OUT_REGISTRY}" -u "${OUT_REGISTRY_USER}" -p "${OUT_REGISTRY_TOKEN}"'
189194 # Since OUT_IMAGE_NAME and OUT_VERSION are set, this will push the CI image to the target
190195 - if [[ "${PRECOMPILED}" == "true" ]]; then ./scripts/precompiled.sh push; else make push-${DIST}-${DRIVER_VERSION}; fi
196+ - |
197+ if [[ -n "${OUT_VERSION}" ]]; then
198+ echo "${CI_COMMIT_SHORT_SHA}-${DRIVER_VERSION}-${DIST} ${OUT_VERSION}-${DRIVER_VERSION}-${OUT_DIST}" > build-info-${DRIVER_VERSION}-${OUT_DIST}.txt
199+ else
200+ echo "${CI_COMMIT_SHORT_SHA}-${DRIVER_VERSION}-${DIST} ${DRIVER_VERSION}-${OUT_DIST}" > build-info-${DRIVER_VERSION}-${OUT_DIST}.txt
201+ fi
191202
192203.release-ubuntu20.04 :
193204 # Perform for each DRIVER_VERSION
You can’t perform that action at this time.
0 commit comments