diff options
author | Paul Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-03-23 23:31:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-23 23:31:40 +0000 |
commit | 1bc0b2692971f27b6b9e36a9e6fc318f63f1e488 (patch) | |
tree | c702ccad28e8848a2bb41706ee78cd2ddc3bc2a5 | |
parent | 51493d1038716a0749bed009f8ba26c38d88444a (diff) |
netdata/packaging/docker/publish: Manifest list naming should take place after version determination (gotcha). Add some extra logging too (#5692)
netdata/packaging/docker/publish: Fix docker publishing
-rwxr-xr-x | packaging/docker/publish.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/docker/publish.sh b/packaging/docker/publish.sh index 449d360595..3eba233f98 100755 --- a/packaging/docker/publish.sh +++ b/packaging/docker/publish.sh @@ -11,7 +11,6 @@ set -e WORKDIR="$(mktemp -d)" # Temporary folder, removed after script is done VERSION="$1" REPOSITORY="${REPOSITORY:-netdata}" -MANIFEST_LIST="${REPOSITORY}:${VERSION}" declare -A ARCH_MAP ARCH_MAP=(["i386"]="386" ["amd64"]="amd64" ["armhf"]="arm" ["aarch64"]="arm64") DEVEL_ARCHS=(amd64) @@ -30,6 +29,7 @@ if [ "${VERSION}" == "" ]; then VERSION="latest" fi fi +MANIFEST_LIST="${REPOSITORY}:${VERSION}" # There is no reason to continue if we cannot log in to docker hub if [ -z ${DOCKER_USERNAME+x} ] || [ -z ${DOCKER_PASSWORD+x} ]; then @@ -70,6 +70,7 @@ echo "Waiting for images publishing to complete" wait # Recreate docker manifest list +echo "Creating manifest list.." $DOCKER_CMD manifest create --amend "${MANIFEST_LIST}" \ "${MANIFEST_LIST}-i386" \ "${MANIFEST_LIST}-armhf" \ @@ -77,15 +78,20 @@ $DOCKER_CMD manifest create --amend "${MANIFEST_LIST}" \ "${MANIFEST_LIST}-amd64" # Annotate manifest with CPU architecture information + +echo "Executing manifest annotate.." for ARCH in ${ARCHS[@]}; do TAG="${MANIFEST_LIST}-${ARCH}" + echo "Annotating manifest for $ARCH, with TAG: ${TAG} (Manifest list: ${MANIFEST_LIST})" $DOCKER_CMD manifest annotate "${MANIFEST_LIST}" "${TAG}" --os linux --arch "${ARCH_MAP[$ARCH]}" done # Push manifest to docker hub +echo "Pushing manifest list to docker.." $DOCKER_CMD manifest push -p "${MANIFEST_LIST}" # Show current manifest (debugging purpose only) +echo "Evaluating manifest list entry" $DOCKER_CMD manifest inspect "${MANIFEST_LIST}" # Cleanup |