diff options
author | 2018-08-07 15:09:08 +0100 | |
---|---|---|
committer | 2018-08-07 15:09:16 +0100 | |
commit | af54db6c136138c66cf5ca72419989525a0baa5c (patch) | |
tree | 8519aeab8d45277c51797c7dc23aacf3b56ed1bb /scripts/deploy-ci.sh | |
parent | A wizard is never late, nor is he early. (diff) |
Initial project layout for django
Diffstat (limited to '')
-rw-r--r-- | scripts/deploy-ci.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/deploy-ci.sh b/scripts/deploy-ci.sh deleted file mode 100644 index 6a3d64bc..00000000 --- a/scripts/deploy-ci.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# Build and deploy on master branch -if [[ $CI_COMMIT_REF_SLUG == 'master' ]]; then - echo "Connecting to docker hub" - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - - changed_lines=$(git diff HEAD~1 HEAD docker/ci.Dockerfile | wc -l) - - if [ $changed_lines != '0' ]; then - echo "ci.Dockerfile was changed" - - echo "Building CI container" - docker build -t pythondiscord/site-ci:latest -f docker/ci.Dockerfile . - - echo "Pushing image to Docker Hub" - docker push pythondiscord/site-ci:latest - else - echo "ci.Dockerfile was not changed, not building" - fi -else - echo "Skipping CI Docker build" -fi |