aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/deploy.py8
-rw-r--r--scripts/deploy.sh2
2 files changed, 1 insertions, 9 deletions
diff --git a/scripts/deploy.py b/scripts/deploy.py
deleted file mode 100644
index 04f3e8229..000000000
--- a/scripts/deploy.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import os
-
-import requests
-
-url = os.environ.get("AUTODEPLOY_WEBHOOK")
-token = os.environ.get("AUTODEPLOY_TOKEN")
-result = requests.get(url=url, headers={'token': token})
-print(result.text)
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index d982bcbcf..49fa03fcb 100644
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -12,7 +12,7 @@ if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
docker push pythondiscord/bot:latest
echo "Deploying container"
- pipenv run python scripts/deploy.py
+ curl -H "token: $AUTODEPLOY_TOKEN" $AUTODEPLOY_WEBHOOK
else
echo "Skipping deploy"
fi