Skip to content

Commit

Permalink
Added debug logs to gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
akdigitalself committed Feb 27, 2024
1 parent 59644d8 commit 4e15d37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ stages:
.version: &version |
# Extract the open source KServe version as the basis for our forked library version.
KSERVE_VERSION=$(cat python/VERSION)
echo 'Kserve version is $KSERVE_VERSION'

PY_LIBRARY_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${CI_PIPELINE_IID}"
echo 'Base PY_LIBRARY_VERSION is $PY_LIBRARY_VERSION'
if [ "${CI_COMMIT_BRANCH}" != "${RELEASE_BRANCH}" ]; then
# TODO Use . instead of . anyways ?
PY_LIBRARY_VERSION="${PY_LIBRARY_VERSION}-dev.${CI_PIPELINE_IID}"
Expand All @@ -30,9 +32,11 @@ stages:
else
IMAGE_TAG="${PY_LIBRARY_VERSION}"
fi
echo 'IMAGE_TAG is $IMAGE_TAG'
# Only apply the KServe version to the python library as Docker versions do not have the concept of
# build metadata and the "+" character causes errors.
PY_LIBRARY_VERSION="${PY_LIBRARY_VERSION}+${KSERVE_VERSION}"
echo 'Final PY_LIBRARY_VERSION is $PY_LIBRARY_VERSION'

build:publish:
extends: .aip_python_debian_image
Expand All @@ -59,4 +63,3 @@ build:publish:
- if: '$PUBLISH == "true"'
# only trigger on zillow/ branches
- if: '$CI_COMMIT_BRANCH =~ /^zillow.*/'

0 comments on commit 4e15d37

Please sign in to comment.