Skip to content

Conversation

@hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Nov 15, 2022

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to README are included in PR

@hessjcg hessjcg added the prepare-release: run Run the prepare-release job on a PR label Nov 15, 2022
@hessjcg hessjcg marked this pull request as ready for review November 15, 2022 22:11
@hessjcg hessjcg requested a review from a team November 15, 2022 22:11
@hessjcg hessjcg changed the title Release jobs feat: add jobs for the release process Nov 15, 2022
@hessjcg hessjcg requested a review from kurtisvg November 15, 2022 22:13
@hessjcg hessjcg changed the title feat: add jobs for the release process feat: add cloud-build job for the release process GH-66 Nov 15, 2022
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
Copy link
Contributor

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"?

Copy link
Collaborator Author

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.

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"
Copy link
Contributor

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)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. fixed.

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"
Copy link
Contributor

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

Copy link
Collaborator Author

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.

@hessjcg hessjcg merged commit 614067b into main Nov 15, 2022
@hessjcg hessjcg deleted the release-jobs branch November 18, 2022 17:56
This was referenced Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prepare-release: run Run the prepare-release job on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants