I’m looking for a way to pass parameters to GitHub Actions without hard coding it into the yaml file. This is because I’d like to reuse the yaml across projects. Is this possible?
my yaml file builds a docker image and publishes it to the GitHub Container Registry and it works fine. However, currently I’m using the repository name for the name of the docker image.
I’d like to arbitrarily set this value without writing it in the yaml file.
With Travis CI, you have the ability to set environment variables per repository in the dashboard, then use that variable.
Is this possible with GitHub Actions? I have an alternative solution regardless; I’m just wondering if this is possible before trying something else.
Help is appreciated, thanks!