mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 23:59:22 +00:00
ci(build): 修改构建,使用严格模式
This commit is contained in:
@@ -4,9 +4,8 @@ ENV VERSION=$VERSION
|
||||
|
||||
WORKDIR /data
|
||||
ADD . /data
|
||||
RUN cd utils && bash -ix build.sh
|
||||
|
||||
RUN cd utils && bash -xieu build.sh
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=stage-build /data/release/lina /opt/lina/
|
||||
COPY --from=stage-build /data/release/lina /opt/lina
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
@@ -16,7 +16,7 @@ function change_version() {
|
||||
}
|
||||
|
||||
# 修改版本号文件
|
||||
if [[ -n ${VERSION} ]]; then
|
||||
if [[ -n ${VERSION-''} ]]; then
|
||||
change_version || exit 2
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user