From ab40c4e007c40f3d059ede3a912b9e180e04c274 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 12 Jul 2020 20:12:53 -0700 Subject: Adding support for release build. --- hooks/post_push | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hooks/post_push b/hooks/post_push index d721b68..3d4830d 100644 --- a/hooks/post_push +++ b/hooks/post_push @@ -1,7 +1,8 @@ #!/bin/bash -docker manifest push --purge b4bz/homer:latest -docker manifest create b4bz/homer:latest b4bz/homer:latest-amd64 b4bz/homer:latest-arm32v7 b4bz/homer:latest-arm64v8 -docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm32v7 --os linux --arch arm -docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm64v8 --os linux --arch arm64 --variant v8 -docker manifest push --purge b4bz/homer:latest \ No newline at end of file +IFS='-' read -r TAG string <<< "$DOCKER_TAG" + +docker manifest create b4bz/homer:$TAG b4bz/homer:$TAG-amd64 b4bz/homer:$TAG-arm32v7 b4bz/homer:$TAG-arm64v8 +docker manifest annotate b4bz/homer:$TAG b4bz/homer:$TAG-arm32v7 --os linux --arch arm +docker manifest annotate b4bz/homer:$TAG b4bz/homer:$TAG-arm64v8 --os linux --arch arm64 --variant v8 +docker manifest push --purge b4bz/homer:$TAG -- cgit v1.2.3