Skip to content
Advertisement

Adding dependencies to default Github Actions script

I have a Python web app on Azure that gets deployed via Github actions. I use the default deployment script that is created by the Azure deployment center (full script shown below). In order for my application to work, I must SSH into the deployment machine after each deployment and manually activate the virtual environment and install packages that aren’t available via pip.

Is there a way to include the manual installations in the pre-generated deployment script that Azure created for me?

These are the manual commands I must run when I SSH into the machine after every deployment…

JavaScript

Here is the deployment script I’m currently using…

JavaScript

Advertisement

Answer

If you really need to install more packages to the system than those installed by default, you’ll need to create your own docker image, publish it to your private Azure Registry and use them as in the example:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement