Comments (1)
Actions and Workflows
There are two components to using GitHub Actions that we'll cover:
- the action itself
- a workflow that uses the action
A workflow can contain many actions, but each action has its own purpose. So, we'll put the files relating to the action in their own directory.
Step 1: Creating a Dockerfile
Every GitHub Action runs in a Docker container and requires a Dockerfile
. Let's add it now. We won't discuss what each line means in detail, but the important thing to know is that the action will be executed in an environment defined by this file.
⌨️ Activity: Create a Dockerfile
and open a pull request
- Create a new branch
- Branches should be named intentionally, so a good name for this branch could be
first-action
- Branches should be named intentionally, so a good name for this branch could be
- On the new branch, create a directory:
action-a
- Note: If you're working on GitHub.com, you can create a directory and a file at the same time by naming the file
action-a/Dockerfile
- Note: If you're working on GitHub.com, you can create a directory and a file at the same time by naming the file
- In the
action-a
directory, create a file titledDockerfile
- Fill the
Dockerfile
with the content below:FROM debian:9.5-slim LABEL "com.github.actions.name"="Hello World" LABEL "com.github.actions.description"="Write arguments to the standard output" LABEL "com.github.actions.icon"="mic" LABEL "com.github.actions.color"="purple" LABEL "repository"="http://github.com/octocat/hello-world" LABEL "homepage"="http://github.com/actions" LABEL "maintainer"="Octocat <[email protected]>" ADD entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]
- Stage and commit your file
- If you're working locally, you will also need to push the branch to GitHub
- Open a pull request with your new branch against
master
I'll respond in your new pull request with next steps.
from hello-github-actions.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello-github-actions.