Skip to content

Commit 3c59619

Browse files
Skip Maven Central publish, rebuild deb for release mode
1 parent 76ca4b3 commit 3c59619

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-nightly-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)