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

Can't use multiple line val in env_vars

Open onel opened this issue 1 year ago • 8 comments

TL;DR

I'm trying to deploy to cloud run and one of the env_vars has a value that is multi line, specifically it is a PEM key. This seems to make the key not be used properly in cloud run UI. The problem is with GH_APP_PRIVATE_KEY Tried with with both "" and without.

In the google console UI the output looks like this image

This might be a yaml question more than a deploy-cloudrun one.

Expected behavior

No response

Observed behavior

No response

Action YAML

- name: Deploy to Google Cloud Run
        uses: google-github-actions/deploy-cloudrun@v2

        with:
          service: ${{ env.RUN_SERVICE }}
          image: ${{ env.GAR_LOCATION }}
          region: ${{ env.REGION }}

          env_vars: |-
            DEBUG='False'
            GH_APP_PRIVATE_KEY=${{ secrets.GH_APP_PRIVATE_KEY }}

Log output

No response

Additional information

No response

onel avatar Dec 20 '24 19:12 onel