• Sri's avatar
    Enable Cloud Run deploys · 9778f115
    Sri authored
    This commit enables the Cloud Run deployment method in
    the `Project :: Infra :: Google Cloud` section.
    
    Minimal frontend changes that rename props and flip the
    disabled switch.
    
    Backend changes introduces a service to enable the underlying
    Google Cloud services via their API. Then of course there's a
    controller method that responds to the user clicking the now
    enabled button.
    
    Detailed changelist:
    
    - Frontend
        - Enable the relevant button in deployment service table
        - Rename the necessary props
        - Specs / tests
    - Backend
        - Rename @js_data attributes
        - Enable Cloud Run service
            - Service that enables cloud run, artifacts registry
              and cloud build for the logged in user's
              Google Cloud account
        - Google API -> Client
            - Methods that make the underlying calls to enable
              cloud run, artifacts registry and cloud build
        - Controller method to handle user selecting the
          `Deploy Cloud Run` button
            - Calls the newly created `EnableCloudRunService`
            - Calls the `GeneratePipelineService`
            - Redirects the user appropriately based on
              service responses
        - Specs / tests
    9778f115
deployments_controller.rb 2.25 KB