-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have to delete action container in order to run new changes #715
Comments
Currently there isn't |
Issue is stale and will be closed in 14 days unless there is new activity |
I used to delete the image before running the job with:
That forces the docker to re-build the docker image. It worked for me but for some reason, it's not working anymore. |
I forgot to include some context that I think is important...I'm using act to actually develop an action not workflow. I think act is intended for action users to test their workflow which explains why you don't have a way to rebuild the docker image everytime. So to be clear, I am working on an action which is a docker container that I was using act to then trigger. I'm doing this because Github does not offer any other sane way of developing actions that I know of. Since act couldn't rebuild the container I just made a npm run command to load some env vars from a env file which allowed the octokit module to be populated with the context and webhook data just like when running it via act/github.com. I would be interested to see how I can use act though so I don't have to maintain the event payloads and env vars! |
I'm unable to find any flag or mention of making act rebuild the action image. I am forced to delete the image which is very time consuming and misses out on layer caching.
Is there a way to tell act to run my action and build the image every time ?
The text was updated successfully, but these errors were encountered: