feat(api): changed alerts_build script
This commit is contained in:
parent
4ce6958175
commit
9cedb18fb2
1 changed files with 3 additions and 2 deletions
|
|
@ -43,13 +43,14 @@ function build_api(){
|
|||
}
|
||||
make_submodule
|
||||
docker build -f ./Dockerfile.alerts --build-arg envarg=$envarg -t ${DOCKER_REPO:-'local'}/alerts:${git_sha1} .
|
||||
cd ..
|
||||
rm -rf alerts
|
||||
[[ $PUSH_IMAGE -eq 1 ]] && {
|
||||
docker push ${DOCKER_REPO:-'local'}/alerts:${git_sha1}
|
||||
docker tag ${DOCKER_REPO:-'local'}/alerts:${git_sha1} ${DOCKER_REPO:-'local'}/alerts:${tag}latest
|
||||
docker push ${DOCKER_REPO:-'local'}/alerts:${tag}latest
|
||||
}
|
||||
rm -rf alerts
|
||||
}
|
||||
|
||||
check_prereq
|
||||
build_api $1
|
||||
build_api $1
|
||||
Loading…
Add table
Reference in a new issue