File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,14 +125,14 @@ jobs:
125125 if [[ "$mode" != "release" ]]; then
126126 export NIGHTLY="-nightly"
127127 echo "NIGHTLY=$NIGHTLY" >> $GITHUB_ENV
128- ./gradlew --refresh-dependencies :serving:dockerDeb -Psnapshot
129128 export BUILD_VERSION_ARG_DJL="${DJL_VERSION}-SNAPSHOT"
130129 export BUILD_VERSION_ARG_SERVING="${SERVING_VERSION}-SNAPSHOT"
131130 else
132- rm -rf serving/docker/distributions
133131 export BUILD_VERSION_ARG_DJL="${DJL_VERSION}"
134132 export BUILD_VERSION_ARG_SERVING="${SERVING_VERSION}"
135133 fi
134+ # Always build deb for both nightly and release
135+ ./gradlew --refresh-dependencies :serving:dockerDeb $([ "$mode" != "release" ] && echo "-Psnapshot" || echo "")
136136 echo "BUILD_VERSION_ARG_DJL=$BUILD_VERSION_ARG_DJL" >> $GITHUB_ENV
137137 echo "BUILD_VERSION_ARG_SERVING=$BUILD_VERSION_ARG_SERVING" >> $GITHUB_ENV
138138 - name : Build docker image
You can’t perform that action at this time.
0 commit comments