diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/post_push | 7 | ||||
-rw-r--r-- | hooks/pre_build | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/hooks/post_push b/hooks/post_push new file mode 100644 index 0000000..d721b68 --- /dev/null +++ b/hooks/post_push | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | 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 | ||
5 | docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm32v7 --os linux --arch arm | ||
6 | docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm64v8 --os linux --arch arm64 --variant v8 | ||
7 | docker manifest push --purge b4bz/homer:latest \ No newline at end of file | ||
diff --git a/hooks/pre_build b/hooks/pre_build new file mode 100644 index 0000000..bc1b6fe --- /dev/null +++ b/hooks/pre_build | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Update to docker-ee 18.x for manifests | ||
4 | apt-get -y update | ||
5 | apt-get -y --only-upgrade install docker-ee | ||
6 | # Register qemu-*-static for all supported processors except the | ||
7 | # current one, but also remove all registered binfmt_misc before | ||
8 | docker run --rm --privileged multiarch/qemu-user-static:register --reset \ No newline at end of file | ||