aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deploy-ci.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploy-ci.sh')
-rw-r--r--scripts/deploy-ci.sh23
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