The logic and commands for your custom Action are defined in a script. In this video, develop the outline for the commands your script is going to run.
- [Instructor] At this point we have a dockerfile in place, … but our action won't do much without and entry-point script. … But before I edit the file, … there's one thing that I really need to do. … I need to make the entry point script executable. … This will allow the script to be run … when the container starts. … I'll do that with the "chmod + X" command. … In this output, we can see that the entry-point script … is now executable. We can tell … by the "X" entries in the mode for the file. … Now, let's take a look at the script. … At the top of the file is the shebang line. … This tells the operating system … which interpreter to use to run the script. … In this case, we're using bash. … I've also added the "set-E" directive, … so bash will exit the scrip immediately … if an error is encountered. … After that are some comments and some commands … outlining what our script does. … If we see the keyword; then do something, … and if not; exit gracefully. … The "$*" is a variable that contains the arguments …
- Creating an action
- Creating a workflow
- Adding actions to a workflow
- Using an action from a repository
- Using environment variables
- Building custom actions
- Use cases for actions and workflows
Skill Level Beginner
1. Your first Action
2. Connecting Actions with Workflows
3. Using Actions
4. Building Custom Actions
5. Use Cases
- 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.