app_release value handled (#3571)
This commit is contained in:
parent
30aaec9097
commit
46ae0f98dc
1 changed files with 6 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ function buildLocalImage() {
|
||||||
cd $PLANE_TEMP_CODE_DIR
|
cd $PLANE_TEMP_CODE_DIR
|
||||||
if [ "$BRANCH" == "master" ];
|
if [ "$BRANCH" == "master" ];
|
||||||
then
|
then
|
||||||
APP_RELEASE=latest
|
export APP_RELEASE=latest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker compose -f build.yml build --no-cache >&2
|
docker compose -f build.yml build --no-cache >&2
|
||||||
|
|
@ -205,6 +205,11 @@ else
|
||||||
PULL_POLICY=never
|
PULL_POLICY=never
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$BRANCH" == "master" ];
|
||||||
|
then
|
||||||
|
export APP_RELEASE=latest
|
||||||
|
fi
|
||||||
|
|
||||||
# REMOVE SPECIAL CHARACTERS FROM BRANCH NAME
|
# REMOVE SPECIAL CHARACTERS FROM BRANCH NAME
|
||||||
if [ "$BRANCH" != "master" ];
|
if [ "$BRANCH" != "master" ];
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue