The Dockerfile is used to build the container that will run your action. In this video, learn to use Dockerfile directives to set the base image for the container along with the tools you need for your custom action.
- [Instructor] Now that we have an objective … for our custom action, … we need a repository and a dockerfile. … I'm working on a brand-new public GitHub repo … that I've cloned to my local system. … I've already coded the dockerfile, … so let's take a look at it. … If you're following along, … the files I'm working with are available … in the Exercise Files. … At the top of the file is the FROM directive. … This sets Alpine Linux as the base image … for our container. … After that, we install the tools … we'll need to make our action work with the RUN command. … Alpine uses the APK command to install packages. … The arguments for the APK command … list the packages we need to install. … We're installing bash, httpie, and jq. … We'll use bash as the interpreter for our script, … and we'll need httpie to interact with the GitHub API. … We'll use jq to work with data in JSON format. … I'll also include some calls to the which command, … so we can see where the tools get installed. … Next up is the COPY directive. …
- Creating an action
- Creating a workflow
- Adding actions to a workflow
- Using an action from a repository
- Developing a CI/CD pipeline with GitHub Actions
- Building custom actions
- Publishing an action to the GitHub Marketplace
Skill Level Beginner
1. Your First Action
Your first Action2m 31s
2. Connecting Actions with Workflows
3. Using Actions
4. Developing a CI/CD Workflow
5. Building Custom Actions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.