Learn how to write your own GitHub Docker container action! This course will empower you to begin automating customized tasks unique to your workflow.
Start free course Join 1243 others!
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:
Dockerfile
?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 input
for current actions in this step. This action will be written using the JavaScript programming language.
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 my-workflow.yml
Reference our custom action from my-workflow.yml
Create an action.yml
file and add necessary metadata
Create main.go
containing the Hello World source code
Create a Dockerfile
containing the Docker instructions
Update 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 my-workflow.yml
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
Create requirements.txt
with your Python dependencies
Create Dockerfile
for the cat-fat action
Restore the workflow file
Trigger a cat fact
Reference issue-maker in the my-workflow.yml
Add package.json
to issue-maker
Add action.yml
for issue-maker
Add src/index.js
for issue-maker
Create Dockerfile
for issue-maker
223 minutes
All public courses on Learning Lab are free.
by MSUSDEV
With GitHub Actions, you can create and set up workflows in your repository to build, test, and...
Learn how to do DevOps on GitHub with the power of GitHub Actions! This path will guide you through...
This course covers how to use GitHub Script to quickly use octokit/rest in a GitHub Actions...
Learn how to write your own GitHub JavaScript Action! This course will empower you to begin...
This course will walk you through using GitHub Actions to get your code in a deployable state once...
Learn new skills by completing fun, realistic projects in your very own GitHub repository.