chore(build): Respect platform config
This commit is contained in:
parent
b802b94081
commit
663c7eb3a1
4 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ function build_alerts() {
|
||||||
tag="ee-"
|
tag="ee-"
|
||||||
}
|
}
|
||||||
mv Dockerfile_alerts.dockerignore .dockerignore
|
mv Dockerfile_alerts.dockerignore .dockerignore
|
||||||
docker build -f ./Dockerfile_alerts --build-arg envarg=$envarg --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/alerts:${image_tag} .
|
docker build -f ./Dockerfile_alerts --platform linux/${ARCH:-"amd64"} --build-arg envarg=$envarg --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/alerts:${image_tag} .
|
||||||
cd ../api
|
cd ../api
|
||||||
rm -rf ../${destination}
|
rm -rf ../${destination}
|
||||||
[[ $PUSH_IMAGE -eq 1 ]] && {
|
[[ $PUSH_IMAGE -eq 1 ]] && {
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ function build_api() {
|
||||||
[[ $1 == "ee" ]] && {
|
[[ $1 == "ee" ]] && {
|
||||||
cp -rf ../ee/assist/* ./
|
cp -rf ../ee/assist/* ./
|
||||||
}
|
}
|
||||||
docker build -f ./Dockerfile --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/assist:${image_tag} .
|
docker build -f ./Dockerfile --platform linux/${ARCH:-"amd64"} --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/assist:${image_tag} .
|
||||||
|
|
||||||
cd ../assist
|
cd ../assist
|
||||||
rm -rf ../${destination}
|
rm -rf ../${destination}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ function build_api() {
|
||||||
[[ $1 == "ee" ]] && {
|
[[ $1 == "ee" ]] && {
|
||||||
cp -rf ../ee/peers/* ./
|
cp -rf ../ee/peers/* ./
|
||||||
}
|
}
|
||||||
docker build -f ./Dockerfile --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/peers:${image_tag} .
|
docker build -f ./Dockerfile --platform linux/${ARCH:-"amd64"} --build-arg GIT_SHA=$git_sha -t ${DOCKER_REPO:-'local'}/peers:${image_tag} .
|
||||||
cd ../peers
|
cd ../peers
|
||||||
rm -rf ../${destination}
|
rm -rf ../${destination}
|
||||||
[[ $PUSH_IMAGE -eq 1 ]] && {
|
[[ $PUSH_IMAGE -eq 1 ]] && {
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ function build_api() {
|
||||||
envarg="default-ee"
|
envarg="default-ee"
|
||||||
tag="ee-"
|
tag="ee-"
|
||||||
}
|
}
|
||||||
docker build -f ./Dockerfile --build-arg GIT_SHA=$git_sha --build-arg envarg=$envarg -t ${DOCKER_REPO:-'local'}/${image_name}:${image_tag} .
|
docker build -f ./Dockerfile --platform linux/${ARCH:-"amd64"} --build-arg GIT_SHA=$git_sha --build-arg envarg=$envarg -t ${DOCKER_REPO:-'local'}/${image_name}:${image_tag} .
|
||||||
cd ../sourcemapreader
|
cd ../sourcemapreader
|
||||||
rm -rf ../${destination}
|
rm -rf ../${destination}
|
||||||
[[ $PUSH_IMAGE -eq 1 ]] && {
|
[[ $PUSH_IMAGE -eq 1 ]] && {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue