Sfoglia il codice sorgente

login before checking metadata

tags/v1.4.4
Jonathan Cobb 3 anni fa
parent
commit
1809f943f6
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      bin/jenkins/push_docker

+ 3
- 3
bin/jenkins/push_docker Vedi File

@@ -31,6 +31,9 @@ set +x
THISDIR="$(cd "$(dirname "${0}")" && pwd)"
BUBBLE_DIR="$(cd "${THISDIR}/../.." && pwd)"

echo "Logging in to docker"
echo -n "${BUBBLE_DOCKER_PASS}" | docker login -u "${BUBBLE_DOCKER_USER}" --password-stdin || die "Error logging in to docker"

echo "Determining Bubble version..."
META_FILE="${BUBBLE_DIR}/bubble-server/src/main/resources/META-INF/bubble/bubble.properties"
VERSION="$(cat "${META_FILE}" | grep bubble.version | awk -F '=' '{print $2}' | awk -F ' ' '{print $NF}' | awk '{$1=$1};1')"
@@ -39,9 +42,6 @@ if [[ -z "${VERSION}" ]] ; then
fi
echo "Found Bubble version ${VERSION}"

echo "Logging in to docker"
echo -n "${BUBBLE_DOCKER_PASS}" | docker login -u "${BUBBLE_DOCKER_USER}" --password-stdin || die "Error logging in to docker"

echo "Checking to see if this version already exists on dockerhub..."
if docker manifest inspect "getbubble/launcher:${VERSION}" 2> /dev/null ; then
echo "Version already exists on dockerhub, not re-publishing: ${VERSION}"


Caricamento…
Annulla
Salva