Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wayfair-incubator/cloud-functions-buildkite-plugin
Buildkite plugin to deploy code to Cloud Functions
https://github.com/wayfair-incubator/cloud-functions-buildkite-plugin
buildkite buildkite-plugin cloud-functions google google-cloud-functions google-cloud-platform hacktoberfest
Last synced: 3 months ago
JSON representation
Buildkite plugin to deploy code to Cloud Functions
- Host: GitHub
- URL: https://github.com/wayfair-incubator/cloud-functions-buildkite-plugin
- Owner: wayfair-incubator
- License: mit
- Created: 2021-05-11T22:25:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T19:16:26.000Z (4 months ago)
- Last Synced: 2024-10-28T20:24:01.791Z (4 months ago)
- Topics: buildkite, buildkite-plugin, cloud-functions, google, google-cloud-functions, google-cloud-platform, hacktoberfest
- Language: Python
- Homepage:
- Size: 209 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://github.com/wayfair-incubator/cloud-functions-buildkite-plugin/actions)
[](https://github.com/wayfair-incubator/cloud-functions-buildkite-plugin/actions)

# Cloud Functions Buildkite Plugin
This buildkite plugin can be used to deploy code to [Cloud Functions](https://cloud.google.com/functions)
See the [plugin tester](https://github.com/buildkite-plugins/buildkite-plugin-tester) for testing examples and usage, and the [Buildkite docs on writing plugins](https://buildkite.com/docs/plugins/writing) to understand everything in this repo.
## Using the plugin
If the version number is not provided then the most recent version of the plugin will be used. Do not use version number as `main` or any branch name.
### Simple
```yaml
steps:
- plugins:
- wayfair-incubator/cloud-functions#v0.1.2:
gcp_project: "gcp-us-project"
gcp_region: "us-central1"
cloud_function_name: "function-1"
cloud_function_directory: "directory/function-code"
```## Configuration
### Required
### `gcp_project` (required, string)
The name of the GCP project you want to deploy to.
Example: `gcp-us-project`
### `gcp_region` (required, string)
GCP region where the cloud function is hosted.
Example: `us-central1`
### `cloud_function_name` (required, string)
Name of the cloud function in GCP.
Example: `function-1`
### `cloud_function_directory` (required, string)
The directory in your repository where you are storing the code files for the cloud function.
Example: `directory/function-code`
## Secret
This plugin expects `GCP_SERVICE_ACCOUNT` is placed as an environment variable. Make sure to store it [securely](https://buildkite.com/docs/pipelines/secrets)!
```yaml
env:
gcp_service_account: '{"email": ""}'
```## Contributing
See the [Contributing Guide](CONTRIBUTING.md) for additional information.
To execute tests locally (requires that `docker` and `docker-compose` are installed):
```bash
docker-compose run py-test
```## Credits
This plugin was originally written by [Jash Parekh](https://github.com/jashparekh) for Wayfair.