I’m running into an issue where I believe I need to use bash (if there’s a better way I’m open)
I’m running a build for python where in part I’m installing requirements, in an other step I’m running lint and several other steps to package and deploy. I’m using venv to share the packages between containers but that requires me source the venv/bin/activate in bash
In the mean time, you best option with 0.8 is to put your build commands inside of a shell script, and then invoke the shell script with bash, like this:
Is there any progress being done for that feature?
How can I make a plugin which have bash in it, and the way to use it is to use the command section in the YAML?
If I build an image with a link from sh to bash, bash will be executed in sh compatible mode, which is not what I want to do.
Just having a ‘shell’ part may do the trick in the yaml, and I don’t want to create a shell script that is a simple line of code for each possible trigger, and I don’t want to do something like:
I know those lines can be written otherwise, so that sh can parse them, the point is that I want to be able to type bash in commands.
I don’t see any way to set the shell in the docs, and actually i found this file in which /bin/sh is hard coded.
Should I make an issue, or am I missing something here?
Does the current Drone version support configuring another shell than the default in the pipeline configuration? I tried setting environment: /bin/bash on both pipeline and individual commands and it doesn’t take.