zakgrant / bitrise-steps-google-cloud-storage-upload

Bitrise Step for uploading build artifacts to Google Cloud Storage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitrise GCS Upload Step

Bitrise Step for uploading build artifacts to Google Cloud Storage.

How to use it.

Upload Service Account JSON File

Bitrise GCS Upload Step uses a service account json file for authentication.

Don't have a service account yet then create one -> instructions.

JSON Credentials file will need uploaded to Bitrise -> Workflow -> Code Signing -> Generic File Storage

WARNING Bitrise GCS Upload Step uses BITRISEIO_GCS_SERVICE_ACCOUNT_JSON_KEY_URL as default key. If you choose to use a different name, you will have to update it in step inputs.

Update bitrise.yml

Add following step into your bitrise.yml

- git::https://github.com/zakgrant/bitrise-steps-google-cloud-storage-upload.git@1.0.2:
    title: Upload artefact to Google Cloud Storage
    inputs:
    - GCS_SERVICE_ACCOUNT_JSON_KEY_URL: $BITRISEIO_GCS_SERVICE_ACCOUNT_JSON_KEY_URL
    - BUCKET_NAME: $GCS_BUCKET_NAME
    - BUCKET_FOLDER_NAME: $GCS_BUCKET_FOLDER_NAME
    - ARTEFACT_PATH: $BITRISE_ARTEFACT_PATH
    - UPLOAD_FILE_NAME: $GCS_UPLOAD_FILE_NAME

About

Bitrise Step for uploading build artifacts to Google Cloud Storage.

License:MIT License


Languages

Language:Go 92.6%Language:Shell 7.4%