fix: use correct name for packagecloud token when running CI commands

This commit is contained in:
Jose Diaz-Gonzalez
2018-12-27 04:36:32 -05:00
parent 90105e3c6a
commit fbf19daff8
5 changed files with 7 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ import shutil
import subprocess
from requests.auth import HTTPBasicAuth
PACKAGECLOUD_API_TOKEN = os.getenv('DOKKU_PACKAGECLOUD_API_TOKEN')
PACKAGECLOUD_TOKEN = os.getenv('DOKKU_PACKAGECLOUD_TOKEN')
def download_file(filename, url):
@@ -25,7 +25,7 @@ def upload_file(filename):
def main():
auth = HTTPBasicAuth(PACKAGECLOUD_API_TOKEN, '')
auth = HTTPBasicAuth(PACKAGECLOUD_TOKEN, '')
base = requests.get('https://packagecloud.io/api/v1/repos/dokku/dokku/packages/deb/ubuntu/trusty.json',
auth=auth)
data = base.json()