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