Browse Source

pass docker login pass on stdin

tags/v1.4.4
Jonathan Cobb 4 years ago
parent
commit
0ae43fbc25
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/jenkins/push_docker

+ 1
- 1
bin/jenkins/push_docker View File

@@ -40,7 +40,7 @@ fi
echo "Found Bubble version ${VERSION}" echo "Found Bubble version ${VERSION}"


echo "Logging in to docker" echo "Logging in to docker"
docker login -u "${BUBBLE_DOCKER_USER}" -p "${BUBBLE_DOCKER_PASS}" || die "Error 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..." echo "Checking to see if this version already exists on dockerhub..."
if docker manifest inspect "getbubble/launcher:${VERSION}" 2> /dev/null ; then if docker manifest inspect "getbubble/launcher:${VERSION}" 2> /dev/null ; then


Loading…
Cancel
Save