ssh_scan_api/build_and_deploy_to_dockerh...

14 строки
300 B
Bash

#!/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