Open ohmios opened 9 months ago
Thanks @ohmios ! @cormacpayne, could you please confirm the discrepancy on our side?
@daniv-msft it looks like our intention is to use the --replace-env-vars
argument when calling az containerapp update
and --env-vars
for other commands (such as create
and up
), but somehow we're getting into a flow where --env-vars
is being used with update
.
@snehapar9 would you mind taking a quick look since you recently worked on refactoring which command is being called for different flows?
Thank you for opening this @ohmios! Do you mind sharing what your workflow file looks like? Would be helpful to determine why we're entering this flow based on the arguments provided to the action.
@snehapar9 I have updated the issue with the content of my workflow file. Let me know if you need more information.
Thank you @ohmios! We are working on this. Will let you know if we need more information.
@ohmios The fix for this issue has just been merged. The latest v2 should now include this fix. Please don't hesitate to let us know if there's any further issue!
I'll close this issue in a few days if there's no other problems regarding to the env var command issue.
Hey I'm noticing an issue regarding the environmentVariables
flag
This is the error it throws when running github action
ERROR: unrecognized arguments: --replace-env-vars LOG_LEVEL=info DB_URL=secretref:*** DB_NAME=secretref:***
Error: The process '/usr/bin/az' failed with exit code 2 Error: The process '/usr/bin/az' failed with exit code 2
This is the stage:
any help with that?
Version 2 of this action passes
--env-vars
as a parameter toaz containerapp update
, but according to the documentation the parameter should be--set-env-vars
. This causes the following error:unrecognized arguments: --env-vars
.The content of my workflow file that caused the error is:
It works fine as long as the
environmentVariables
parameter is not set. The only difference between the content of this file and my current file is that I use Azure CLI Action to set the enviroment variables in a previous step, as a workaround.