mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
add hooks for autobuild
(cherry picked from commit 1bbbdef6778f85b8e91882239ee070b55f48e5b6)
This commit is contained in:
parent
cc3f12cd93
commit
ae5e390d84
3
docker/arm64/hooks/post_checkout
Normal file
3
docker/arm64/hooks/post_checkout
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# downloads a local copy of qemu on docker-hub build machines
|
||||
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
|
||||
4
docker/arm64/hooks/pre_build
Normal file
4
docker/arm64/hooks/pre_build
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# Register qemu-*-static for all supported processors except the
|
||||
# current one, but also remove all registered binfmt_misc before
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
3
docker/armhf/hooks/post_checkout
Normal file
3
docker/armhf/hooks/post_checkout
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# downloads a local copy of qemu on docker-hub build machines
|
||||
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
|
||||
4
docker/armhf/hooks/pre_build
Normal file
4
docker/armhf/hooks/pre_build
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# Register qemu-*-static for all supported processors except the
|
||||
# current one, but also remove all registered binfmt_misc before
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
Loading…
x
Reference in New Issue
Block a user