Browse Source

Merge pull request #7813 from learningequality/release-v0.12.x

Enacpsulate Upload Step | 0.13 <- 0.12
pull/8444/head
David C 9 months ago
committed by GitHub
parent
commit
caa776bb04
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .buildkite/setup_and_upload_artifact.sh
  2. 11
      .buildkite/upload_artifacts.py
  3. 1
      requirements/release_upload.txt

1
.buildkite/setup_and_upload_artifact.sh

@ -18,6 +18,7 @@ IMAGE=$(cat upload_artifacts.iid)
echo "--- Running script in Docker, image ID: $IMAGE"
# Mounting dist so that we're not redundantly copying
# Adding envars for GH access and Tag information
# Binding google app creds for shared use
docker run \
--mount type=bind,src=$PWD/dist,target=/dist \
-e GITHUB_ACCESS_TOKEN \

11
.buildkite/upload_artifacts.py

@ -13,7 +13,6 @@ from os import listdir
import requests
from github3 import login
from google.cloud import storage
logging.getLogger().setLevel(logging.INFO)
@ -141,16 +140,6 @@ def upload_gh_release_artifacts(artifacts={}):
"Error uploading release asset: %s" % (artifact.get("name"))
)
logging.info("Uploading to Google")
client = storage.Client()
bucket = client.bucket("le-downloads")
blob = bucket.blob(
"kolibri-release-{artifact}".format(artifact=artifact["name"])
)
blob.upload_from_filename(filename=artifact["file_location"])
blob.make_public()
def main():
if TAG:

1
requirements/release_upload.txt

@ -1,3 +1,2 @@
requests==2.21.0
github3.py==1.1.0
google-cloud-storage==1.24.1
Loading…
Cancel
Save