Skip to content

Commit

Permalink
Adding support for release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed Jul 13, 2020
1 parent 1f92e17 commit ab40c4e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions hooks/post_push
Original file line number Diff line number Diff line change
@@ -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
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

0 comments on commit ab40c4e

Please sign in to comment.