From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Challenge: Create a custom action - GitHub Tutorial
From the course: Learning GitHub Actions
Challenge: Create a custom action
(upbeat music) - [Instructor] Let's pause here for a challenge. In this challenge, you'll need to start with two new repositories. One for a custom action and another for workflow to test the action In the repo for your custom action, create a Dockerfile and a script that implements some function. It could be as simple as printing Hello World or as complex as you want it to be. The most important thing at this point is to get all of the pieces together for your custom action, specifically a working Dockerfile and script. In the repo for your workflow, use a push event to trigger the workflow, then call the custom action and observe the output. It should take from 10 to 15 minutes to solve this challenge. Give it a try and then join me in the next video for the solution.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Plan a custom action4m 28s
-
(Locked)
Your custom action objective1m 7s
-
(Locked)
Dockerfile review4m 58s
-
(Locked)
Add a Dockerfile2m 20s
-
(Locked)
Add an entry-point script2m 30s
-
(Locked)
Use runtime environment resources4m 11s
-
(Locked)
Test an action locally3m 52s
-
(Locked)
Complete the entry-point script2m 2s
-
(Locked)
Add a metadata file2m 48s
-
(Locked)
Add a README file1m 48s
-
(Locked)
Deploy a custom action2m 22s
-
(Locked)
Publish an action to the Marketplace4m 16s
-
(Locked)
Challenge: Create a custom action1m
-
(Locked)
Solution: Create a custom action7m 47s
-
(Locked)
-