Skip to content

Commit

Permalink
build scripts: push.sh honors BALENA_BUILD_EXTRA_ARGS
Browse files Browse the repository at this point in the history
... for the case of balena is being executed on a different host
architecture than the balena machine target

Change-type: patch
  • Loading branch information
psaavedra committed Dec 23, 2022
1 parent 8b8e29e commit 13d0cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ shipped with Weston by default.
```bash
MACHINE=raspberrypi3
IMAGE_DOCKER_PATH=igalia
# BALENA_BUILD_EXTRA_ARGS="-e" # In case of balena is being executed on a different host architecture than the balena machine target
./push.sh
```

3 changes: 2 additions & 1 deletion push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ if [ "${SKIP_BUILD_BALENA}" == "1" ]
then
echo ">>> Build Balena image (SKIPPED):"
else
balena build . --deviceType ${MACHINE} --arch ${ARCH}
rm -rf build
balena build . --deviceType ${MACHINE} --arch ${ARCH} ${BALENA_BUILD_EXTRA_ARGS}
docker tag "docker-balena-weston_weston" "${IMAGE_BALENA_IN_DOCKER}"
docker tag "docker-balena-weston_weston" "${IMAGE_BALENA_IN_DOCKER}-${VERSION}"
fi
Expand Down

0 comments on commit 13d0cc6

Please sign in to comment.