GitHub Actions is a powerful platform that empowers your team to go from code to cloud all from the comfort of your own repositories.
This course will teach you the skills needed to begin using and customizing Docker container based actions to fit your unique workflow scenarios.
After completing this course, you will be able to:
You'll know the answers to questions like:
In this course you will build three actions that each accomplish different tasks designed to demonstrate the flexibility of creating and consuming Docker Based Actions.
Hello, world! You will start with the traditional "Hello, world!" program which will teach you where to find the output of a workflow run. You will then modify this "Hello World!" action to accept
input parameters which allow the action to be more dynamic. This action will be written using the Go programming language.
Cat facts You will write an action that call upon an external API to retrieve a fact about cats and prints it to the workflows output. You will then modify this cat fact action to set the retrieved data as
output for another action in the workflow to consume. This action will be written using the Python programming language.
Issue maker You will open an issue in your repository making the cat fact available to everyone. You will learn how to use the
output of previous actions as
We recommend you first take the following courses on Learning Lab:
Since this is a course on Docker based actions, having a basic understanding of Docker is recommended.
Developers, DevOps Engineers, students, teams
Create a pull request to add a workflow
Remove boilerplate steps from
Reference our custom action from
action.yml file and add necessary metadata
main.go containing the Hello World source code
Dockerfile containing the Docker instructions
action.yml to accept input parameters for Hello World
Extend Hello World's source code to accept the input parameters
Assign values to the newly created input parameters in
View the results of changing input parameters
Comment out the lines in the workflow to prevent unwanted runs
Create the cat-facts metadata file
Create the Python source code for the cat-fats action
requirements.txt with your Python dependencies
Dockerfile for the cat-fat action
Restore the workflow file
Trigger a cat fact
Reference issue-maker in the
package.json to issue-maker
action.yml for issue-maker
src/index.js for issue-maker
Dockerfile for issue-maker
All public courses on Learning Lab are free.