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

Support env_vars as a file.

Open aebrahim opened this issue 3 years ago • 0 comments

TL;DR

Allow multiple env_vars to be specified in a .env file.

Design

Docker supports specifying multiple environmental variables in a .env file with the command line argument --env-file, and it would be very convenient to easily be able to deploy those to cloud run as well, without needing to re-copy them as a comma separated string in env_vars.

 - name: Deploy to Cloud Run
   id: deploy
  uses: google-github-actions/[email protected]
  with:
    service: my-awesome-service
    image: ...
    env_vars: MY_VAR1=10,MY_VAR2=HELLO,...,MY_VAR_100=WORLD
    env_vars_file: easier_place_to_keep_vars.env

Resources

aebrahim avatar Sep 30 '21 23:09 aebrahim