blob: ed4b719e2895a1d8cd80df20a3b188a5ede78008 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
 | #!/bin/bash
cd ..
# Build and deploy on master branch, only if not a pull request
if [[ ($BUILD_SOURCEBRANCHNAME == 'master') && ($SYSTEM_PULLREQUEST_PULLREQUESTID == '') ]]; then
    echo "Building image"
    docker build -t pythondiscord/bot:latest .
    echo "Pushing image"
    docker push pythondiscord/bot:latest
fi
 |