diff options
-rw-r--r-- | Dockerfile.arm32v7 | 1 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 1 | ||||
-rw-r--r-- | hooks/post_push | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 79a7a61..58a1834 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 | |||
@@ -1,4 +1,5 @@ | |||
1 | FROM arm32v7/alpine:3.11 | 1 | FROM arm32v7/alpine:3.11 |
2 | COPY qemu-arm-static /usr/bin | ||
2 | 3 | ||
3 | COPY ./ /www/ | 4 | COPY ./ /www/ |
4 | 5 | ||
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 707dd83..69132a3 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -1,4 +1,5 @@ | |||
1 | FROM arm64v8/alpine:3.11 | 1 | FROM arm64v8/alpine:3.11 |
2 | COPY qemu-arm-static /usr/bin | ||
2 | 3 | ||
3 | COPY ./ /www/ | 4 | COPY ./ /www/ |
4 | 5 | ||
diff --git a/hooks/post_push b/hooks/post_push index d721b68..08384f3 100644 --- a/hooks/post_push +++ b/hooks/post_push | |||
@@ -1,5 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | #!/bin/bash | ||
4 | # downloads a local copy of qemu on docker-hub build machines | ||
5 | 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 . | ||
6 | |||
7 | |||
3 | docker manifest push --purge b4bz/homer:latest | 8 | docker manifest push --purge b4bz/homer:latest |
4 | docker manifest create b4bz/homer:latest b4bz/homer:latest-amd64 b4bz/homer:latest-arm32v7 b4bz/homer:latest-arm64v8 | 9 | docker manifest create b4bz/homer:latest b4bz/homer:latest-amd64 b4bz/homer:latest-arm32v7 b4bz/homer:latest-arm64v8 |
5 | docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm32v7 --os linux --arch arm | 10 | docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm32v7 --os linux --arch arm |