|
#!/bin/bash
|
|
|
|
docker build -t mozilla/ssh_scan_api .
|
|
|
|
if [[ "$TRAVIS_BRANCH" == "master" ]]; then
|
|
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
|
|
echo $DOCKER_PASS | docker login -u="$DOCKER_USER" --password-stdin;\
|
|
docker push mozilla/ssh_scan_api;\
|
|
else
|
|
exit 0
|
|
fi
|
|
else
|
|
exit 0
|
|
fi |