openreplay/scripts/helmcharts/build_deploy.sh
rjshrjndrn 38db70eecd chore(build): api build script is exiting the flow. so making it as last
step.

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
2022-09-02 16:02:32 +02:00

24 lines
567 B
Bash

#!/bin/bash
set -e
# This script will build and push docker image to registry
# Usage: IMAGE_TAG=latest DOCKER_REPO=rg.fr-par.scw.cloud/foss bash build_deploy.sh
echo $DOCKER_REPO
[[ -z DOCKER_REPO ]] && {
echo Set DOCKER_REPO="your docker registry"
exit 1
} || {
docker login $DOCKER_REPO
cd ../../backend
PUSH_IMAGE=1 bash build.sh $@
cd ../utilities
PUSH_IMAGE=1 bash build.sh $@
cd ../peers
PUSH_IMAGE=1 bash build.sh $@
cd ../frontend
PUSH_IMAGE=1 bash build.sh $@
cd ../api
PUSH_IMAGE=1 bash build.sh $@
}