diff options
author | Amir Zarrinkafsh <nightah@me.com> | 2020-05-08 21:59:39 +1000 |
---|---|---|
committer | Amir Zarrinkafsh <nightah@me.com> | 2020-05-08 21:59:39 +1000 |
commit | abe6df52b500199ff4b379e0370427267a16992b (patch) | |
tree | feb59617e4230c8de90e527581357d23a74c5dc4 /hooks/post_push | |
parent | b317857892921423479b713fb530f5d07d1f5d82 (diff) | |
download | homer-abe6df52b500199ff4b379e0370427267a16992b.tar.gz homer-abe6df52b500199ff4b379e0370427267a16992b.tar.zst homer-abe6df52b500199ff4b379e0370427267a16992b.zip |
Build multi-arch container with manifest
Diffstat (limited to 'hooks/post_push')
-rw-r--r-- | hooks/post_push | 7 |
1 files changed, 7 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 | ||