#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    docker login -u="$DOCKER_USER" -p="$DOCKER_PASS";
    docker push softinstigate/serverless:latest;
    docker push softinstigate/serverless:"$RELEASE";
fi
#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
    docker push softinstigate/serverless:latest;
    docker push softinstigate/serverless:"$RELEASE";
fi
Use --password-stdin for docker login
Use --password-stdin for docker login
