A command line tool for deploying and managing GCP Cloud Functions.
- Deploy cloud functions to different environments (sandbox, dev, pro)
- Get detailed information about deployed functions
- Support for versioning and clean builds
- GitHub Actions integration for automated deployment
go install github.com/carbonquest/gcptool@latest
gcptool deploy <function-name> -e <environment> -v <revision> -c
Options:
-e, --environment
: Environment to deploy to (sandbox, dev, pro)-v, --revision
: Revision number-c, --clean
: Clean and rebuild before deploying
Example:
gcptool deploy my-function -e dev -v 1.0.0 -c
gcptool describe <function-name>
Example:
gcptool describe my-function
The repository includes a GitHub Actions workflow that:
- Runs unit tests on every push and pull request
- Deploys the function to GCP when changes are pushed to main branch
- Add your GCP credentials as a GitHub secret named
GCP_CREDENTIALS
- The workflow will automatically run on pushes to main branch
git clone https://github.com/carbonquest/gcptool.git
cd gcptool
go build -o gcptool ./cmd/gcptool
go test ./... -v
MIT