deploy-cloudrun icon indicating copy to clipboard operation
deploy-cloudrun copied to clipboard

Add support for updating the image of a specific container in a Cloud Run service

Open joelsdc opened this issue 10 months ago • 0 comments

TL;DR

Nowadays you can setup multi-container deployments in Cloud Run.

This feature request is to add a new param (container?) to allow updating the image of any container in a deployment.

Say you have a Cloud Run service called TestService1, that has 3 containers: nginx, cms, metrics.

To update the image of the cms container I would like do something along:

      - name: Update Cloud Run service
        id: gcloud-cloudrun
        uses: google-github-actions/deploy-cloudrun@v2
        with:
          image: path/to/image:tag
          service: 'TestService1'
          container: 'cms'
          project_id: ${{ env.GCP_PROJECT }}
          region: ${{ env.GCP_REGION }}
          revision_traffic: 'LATEST=100'

The expectation would be that only the image for the specific container in the service would be updated.

Thanks!

Detailed design

No response

Additional information

No response

joelsdc avatar Jan 23 '25 18:01 joelsdc