You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
453 B
18 lines
453 B
#!/bin/bash
|
|
<% is_armhf = (dockerfile.split("/")[1] == "armhf") %>
|
|
# AUTOMATICALLY GENERATED
|
|
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_checkout.erb
|
|
<% if is_armhf %>
|
|
set -e
|
|
|
|
HOST_ARCH=$(uname -m)
|
|
|
|
if [ x"${HOST_ARCH}" == x"arm*" ]; then
|
|
echo "Building armhf image natively"
|
|
exit
|
|
fi
|
|
|
|
# Enable cross-platform builds https://github.com/multiarch/qemu-user-static
|
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
<% end %>
|