18 lines
453 B
Plaintext
18 lines
453 B
Plaintext
|
#!/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 %>
|