-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your first Docker based action #3
Comments
Anatomy of an actionEarlier you learned how the different pieces of GitHub Actions work together. Now you will learn about the components that make up an individual action. Remember, an action is the unit of work that a workflow file executes when it reaches that task. They are called by referencing them as the value to the What makes up an action?Docker actions consist of three key components:
Let's take a look at how those components fit together.
Although the workflow file is used to allow us to set the The failing workflow You may be following along on the Actions tab of this repository. If you are, you'll notice that the workflow we set up previously is failing. That is the currently expected behavior: we referenced an action in the |
Action metadataSince every GitHub Action that we write needs to be accompanied by a metadata file this is the file we will create first. This file has a few rules to it, lets outline those now:
This file defines the following information about your action:
📖Read more about Action metadata |
Create the action metadataNow that we know what action metadata is, let's create the metadata for our hello-world action. ⌨️ Activity: Create an
|
Great job 👍I have created a new pull request where we will continue this lesson. Click the link to meet me over there. In the meantime I have closed this issue since we wont be needing it anymore 😄 |
Hello world with Docker 🐳
@Cemberk we are going to start with the typical "Hello World" example and build something more complex after, but first let's decide if a Docker based action is the right action for us!
Why use Docker when writing GitHub Actions?
That's a super great question to ask. Before we talk about the components that make up Docker based actions, we should understand the good and the bad of Docker based actions.
Got it, what now?
Let's begin by exploring the components of a Docker based action and discuss how they fit together!
The text was updated successfully, but these errors were encountered: