Setting up a Minicli app as a GitHub Action¶
Minicli applications can also be turned into GitHub Actions with proper containerization, as demonstrated in this DEV.to tutorial.
The process mainly involves:
- creating a proper Dockerfile to run the application;
- creating an
action.yml
file with metadata for your Action.
Both files must live in the root of your GitHub Action repository.
The Minicli Action Dockerfile¶
This is what a Dockerfile from a functional Minicli GitHub Action looks like:
The action.yml
file¶
This is what an action.yml
for this action would look like:
YAML | |
---|---|
For more detailed information on how to create GitHub Actions with Minicli, check this tutorial on how to build a GitHub action to import posts from DEV.to.