Update makefile and deploy.sh to pass build arguments

updated makefile to pass the required build
arguments for multistage docker build

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-04-21 19:01:25 +05:30
committed by mergify[bot]
parent 2de2d348c1
commit 4b540ffecc
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ build_push_images() {
digest=$(awk -v ARCH=${ARCH} '{if (archfound) {print $NF; exit 0}}; {archfound=($0 ~ "arch.*"ARCH)}' <<<"${manifests}")
IFS=$ifs
sed -i "s|\(^FROM.*\)${baseimg}.*$|\1${baseimg}@${digest}|" "${dockerfile}"
ARCH=${ARCH} make push-image-cephcsi
GOARCH=${ARCH} make push-image-cephcsi
done
}