-
Notifications
You must be signed in to change notification settings - Fork 16
feat: add cloud-build job for the release process GH-66 #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f66d084 to
2d23489
Compare
| @@ -0,0 +1,34 @@ | |||
| #!/usr/bin/env bash | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should the file just be called "release.sh"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It only publishes the installer, it doesn't do the whole release. So I called it "publish-installer.sh". The main release file is .build/release.yaml.
tools/publish-installer.sh
Outdated
| fi | ||
|
|
||
| # Upload the installer files to the storage bucket | ||
| gcloud storage --project cloud-sql-connectors cp installer/install.sh "gs://cloud-sql-connectors/cloud-sql-proxy-operator-dev/${VERSION}/install.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we make this project and bucket as variables (so they are easier to change in 1 place later)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. fixed.
tools/publish-installer.sh
Outdated
| fi | ||
|
|
||
| # Upload the installer files to the storage bucket | ||
| gcloud storage --project cloud-sql-connectors cp installer/install.sh "gs://cloud-sql-connectors/cloud-sql-proxy-operator-dev/${VERSION}/install.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cloud Build has a built in mechanism for pushing files when the job is complete. Would it be better to just inline these steps using that mechanism? https://cloud.google.com/build/docs/building/store-artifacts-in-cloud-storage#store-artifact-storage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this doesn't give us enough flexibility with the filenames. I think the script will have to do.
Fixes #<issue_number_goes_here>