Do you have an example of a step to upload files to Google Cloud Storage after the step to clone a git repo (uploading files from that repo)?
Hello.
I think you can just use the gcloud image (Docker Hub) directly (no need for special step)
Here is a pipeline sample. I haven’t actually tested it, I am giving you an idea on how it would look like
version: '1.0'
stages:
- prepare
- upload
steps:
main_clone:
title: 'Cloning main repository...'
type: git-clone
repo: 'my-github-project/my-app-repository'
git: github
revision: 'master'
stage: prepare
upload_to_bucket
title: Uploading my files
stage: upload
image: 'google/cloud-sdk'
commands:
- gcloud auth activate-service-account --key-file=account.json
- gcloud config set project my-project-176201
- gsutil cp *.txt gs://my-bucket
Does that help?
That’s perfect, thank you very much!