To build the act
image simply invoke make build
This will give you some instructions to create an alias to act
that will look like
Run via docker run -it --rm -v "":/workspace -v /var/run/docker.sock:/var/run/docker.sock -w /workspace act-image -j testPackageRunnerWithScopeRegistry
To create a function 'act' that you can use as a command, add the following to your shell configuration file (e.g., ~/.bashrc or ~/.zshrc):
act() { docker run -it --rm -v "$PWD:/workspace" -v /var/run/docker.sock:/var/run/docker.sock -w /workspace act-image "$@"; }
After adding, apply the changes with 'source ~/.bashrc' or 'source ~/.zshrc'.
After you add the above act
function to your .bashrc
or .zshrc
you can then simply invoke
act
as usual from your working directory.