Skip to content

Commit

Permalink
Download manifest-tool if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosedp committed Jan 14, 2019
1 parent b114cc6 commit 97a8466
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
images/manifest-tool
8 changes: 7 additions & 1 deletion images/build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ VERSIONS=($JAVA_VERSION $ES_VERSION $ES_VERSION $CURATOR_VERSION $FLUENTD_VERSIO

num_img=$((${#IMAGES[*]}-1))

CURRENT_ARCH=`dpkg-architecture -q DEB_BUILD_ARCH`
if [[ -x $(command manifest-tool) ]]; then
curl -o ./manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.9.0/manifest-tool-linux-$(CURRENT_ARCH)
chmod +x manifest-tool
fi

function build_image {
I=$1
ARCH_LIST=''
Expand All @@ -56,7 +62,7 @@ function build_image {

# Generate the manifests for the images
echo "Generating manifests for image $IMAGE"
manifest-tool push from-args --platforms $ARCH_LIST --template "$REGISTRY/$IMAGE:$VERSION-ARCH" --target "$REGISTRY/$IMAGE:latest"
#manifest-tool push from-args --platforms $ARCH_LIST --template "$REGISTRY/$IMAGE:$VERSION-ARCH" --target "$REGISTRY/$IMAGE:latest"
manifest-tool push from-args --platforms $ARCH_LIST --template "$REGISTRY/$IMAGE:$VERSION-ARCH" --target "$REGISTRY/$IMAGE:$VERSION"

echo ""
Expand Down

0 comments on commit 97a8466

Please sign in to comment.