Is there a particular scripting language that is r...
# github-actions
a
Is there a particular scripting language that is recommended to use as an alternative to unwieldy BASH scripts in github actions?
Ideally I'd prefer to use python - curious to know how people have found support for that compared to shell ๐Ÿ™
d
write better bash ๐Ÿ˜› โ€” if Iโ€™m doing something complex then I end up creating a Docker image and run the step as that
๐Ÿ‘Œ 1
j
@Darren Cunningham I'm new to all of this, I wrote a pipeline for my work in jenkins but it's never had quite the performance I want it to have so I'm thinking about moving over to gha. Where do you get to those steps where you can write steps in bash / python make docker images etc. I shutter to say it but that stuff seems more straight forward in jenkins
d
if performance is your key decision factor than GHA might not solve the problem. Hosted runners are not that powerful, you might have to use self-hosted runners; which is a pile of work alone. Creating the Docker image is itโ€™s own workflow which is pretty much just docker/build-push-action โ€” but I push to a private ECR. Authentication to from GHA uses OIDC with aws-actions/amazon-ecr-login. Doing all of that is no small feat.
Jenkins to GHA migration isnโ€™t an easy one, the primary decision factor for me was not having to manage Jenkins itself. System updates, patches, etc. We were ok with pipelines taking a bit longer to startup/run in order to not have to manage that.