act
act copied to clipboard
Deployment Environments support
Act version
0.2.44
Feature description
In GitHub action it is possible to specify an “environment” key to discriminate between divergent secrets set. In my case I have two sets of credentials called “dev” and “prod”.
In the yml action file i then have a deploy job that uses a matrix to deploy to each environment (prod requires a manual review by an authorized use, but it is not the point here). Because the environment value is ignored, act runs the two jobs un the matrix using the same test secrets. That could be fine if the only difference in the environments are the credentials, but it could be annoying if there are different build params (like log levels, debug symbols and so on)
It would be great if it could be possible to map different env files to different environments. Or maybe load all .env files and use the extension as the environment name (.env.dev maps to dev, etc)
thanks!