Creating a Docker container action
The next few pages will walk you through the creation of a Docker container action. Although basic Docker knowledge will be helpful in understanding parts of this section, the main goal is to provide you with knowledge needed to create an action from scratch. Focus on Docker itself will be minimal.
Once you are done reading this section, you will be able to create a Docker container action and verify that it works as intended by using it in a workflow.
Prerequisites
To follow the steps presented in this section, you will need the following:
- A new GitHub repository. Throughout this section, the
talktopri/a-docker-action
repository will be used. - A local copy of your GitHub repository. Use the
git clone
command to clone your GitHub repository to your workstation. Revisit Chapter 1, Learning the Foundations for GitHub Actions, if you need more details on how to accomplish that.The following screenshot shows the GitHub repository being...