ci(build): 修改构建,使用严格模式

This commit is contained in:
ibuler
2020-07-09 17:05:47 +08:00
committed by BaiJiangJie
parent d3fbb9a391
commit 8c6d2a1150
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -16,7 +16,7 @@ function change_version() {
}
# 修改版本号文件
if [[ -n ${VERSION} ]]; then
if [[ -n ${VERSION-''} ]]; then
change_version || exit 2
fi