Skip to content

Commit

Permalink
Add Docker Hub push hook to fix the build of the huey container
Browse files Browse the repository at this point in the history
Even though the build hook builds both the web app and Huey worker
containers, the Huey container is not pushed to the registry and
it is thus lost. Adding the push hook should fix this.
The new push hook pushes all layers of the container.
  • Loading branch information
markkuriekkinen committed Feb 24, 2022
1 parent 8f3a36e commit 684dbd1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Empty file modified docker/hooks/build
100644 → 100755
Empty file.
16 changes: 16 additions & 0 deletions docker/hooks/push
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

ver=${DOCKER_TAG##*-}
if [ "$ver" -a "$ver" = "$DOCKER_TAG" ]; then
ver="$DOCKER_TAG"
fi

for layer in "" "huey"; do
if [ "$layer" ]; then
tag="${layer}-${ver}"
else
tag="$ver"
fi
docker push "$DOCKER_REPO":"$tag"
done

0 comments on commit 684dbd1

Please sign in to comment.