fix: 修正版本获取不正确

This commit is contained in:
吴小白 2023-02-28 16:36:48 +08:00
parent c099a16a49
commit f62c6b980e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ ARG VERSION
ENV VERSION=$VERSION ENV VERSION=$VERSION
ADD . /data ADD . /data
RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \ RUN --mount=type=cache,target=/usr/local/share/.cache/yarn,sharing=locked,id=lina \
sed -i "s@<strong> version-dev </strong>@<strong> ${VERSION} </strong>@g" src/layout/components/NavHeader/About.vue \ sed -i "s@version-dev@${VERSION}@g" src/layout/components/NavHeader/About.vue \
&& yarn build && yarn build
FROM nginx:alpine FROM nginx:alpine

View File

@ -12,7 +12,7 @@ else
fi fi
function change_version() { function change_version() {
sedi "s@<strong> version-dev </strong>@<strong> ${VERSION} </strong>@g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2 sedi "s@version-dev@${VERSION}@g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2
} }
function install_deps() { function install_deps() {