From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Solution: Create a custom action - GitHub Tutorial
From the course: Learning GitHub Actions
Solution: Create a custom action
(upbeat music) - [Instructor] In this challenge you're asked to create a custom action and call that action from a different repository. I'm logged into my GitHub account and I have two tabs open in my browser. This one for the custom action and another one for the workflow that caused the custom action. Let's start with creating the action. The first thing we need to add is a docker file. I'll click on add file, create new file and then give our docker file a name which is of course docker file. Okay, let's add the contents to our docker file now and we start with the, from statement which specifies the operating system we're going to use for the container that runs this action and I'm going to pick Ubuntu. Next I'll use the copy command to copy the entry point script in, entry point dot SH note that I'm going to add a slash in front of the location where I'm copying the entry point script to.…
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)
-