feat(api): changed alerts_build script
This commit is contained in:
parent
9cedb18fb2
commit
826b0e5c35
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,7 @@ function make_submodule() {
|
|||
cp -R ./chalicelib/utils/{__init__,TimeUTC,pg_client,helper,event_filter_definition,dev,email_helper,email_handler,smtp,s3,metrics_helper}.py ./alerts/chalicelib/utils/
|
||||
# -- end of generated part
|
||||
|
||||
cp -R ./{Dockerfile.alerts,requirements.txt} ./alerts/
|
||||
cd alerts
|
||||
cp -R ./{Dockerfile.alerts,requirements.txt,.env.default} ./alerts/
|
||||
}
|
||||
|
||||
git_sha1=${IMAGE_TAG:-$(git rev-parse HEAD)}
|
||||
|
|
@ -42,6 +41,7 @@ function build_api(){
|
|||
tag="ee-"
|
||||
}
|
||||
make_submodule
|
||||
cd alerts
|
||||
docker build -f ./Dockerfile.alerts --build-arg envarg=$envarg -t ${DOCKER_REPO:-'local'}/alerts:${git_sha1} .
|
||||
cd ..
|
||||
rm -rf alerts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue