-
Notifications
You must be signed in to change notification settings - Fork 233
Adding Github Action to run Container Diff #286
Adding Github Action to run Container Diff #286
Conversation
I'm not familiar with the setup with GoLang, but it looks like some kind of boilerplate (or ignore file?) is missing here?
Let me know how to fix this up. |
oup, found it! Disregard question :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll admit I don't totally understand the configuration for Github Actions....but this is cool! :)
Awesome! If you have some random free time, definitely try them out. It's akin to any continuous integration, but all within Github (so if you needed to share your
The "uses" key references the repository, and the subfolder "actions" on the master branch. The "args" is where they write the command they want to send to container-diff. In context of a workflow, this would just be one step! Likely next they would do something with the output. We aren't biased to what is done, we just want to make sure they can easily do it :) |
This pull request will add a folder, "actions" that has inside a Dockerfile, entrypoint, and instructions for using container-diff within Github Actions. The simplest example is just to run container-diff as part of a workflow:
You could also list the data.json to show it's available for the next step:
Which is what I did during testing:
And the general expectation is that the user would then do some additional step in the workflow that uses the data. For example, I'm going to use it to create an interactive tree diagram of the container (using the --type=file output) and then push it back to github pages.
I don't see need for different kinds or levels of actions (e.g., a subfolder in a repository can have a different Dockerfile or with a different branch) so I made just one actions folder with the Dockerfile at the root, but if you see reason to add specific ones let's chat about that.