Azure / container-apps-deploy-action

GitHub Action for building and deploying Azure Container Apps
MIT License
52 stars 29 forks source link

Pass build args to the build step #51

Open pietrovismara opened 1 year ago

pietrovismara commented 1 year ago

Is there a way to pass build args for the docker build step?

Judging from the code I see here this isn't supported, but maybe you can confirm it?

I know of the environmentVariables parameter, the problem with it is that I need some arguments to be available while running docker build, while those environmentVariables become available only when the container is run, for what I understand.

pietrovismara commented 1 year ago

I realized this is probably a duplicate of this issue:

cormacpayne commented 1 year ago

@pietrovismara Hey Pietro, you're correct, this feature isn't supported yet, but we'll make sure it's on our internal backlog since it's been requested across different issues (in both the GitHub Actions and Azure DevOps repositories). We'll keep these sets of issues updated with any movement on our side when we have the chance to take a look at supporting this feature. Thanks!

quillan86 commented 1 year ago

Pasting here to indicate that we have a desire for this to - not sure how to use ContainerApps with separate environmental variables for a front-end app without this

pietrovismara commented 1 year ago

@quillan86 temporary solution: copy the action.yml file into your repo and edit the docker build command to add the build args you need. It works with github variables, secrets, etc.

FabianMeul commented 1 year ago

Leaving a comment to request this feature.