Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
GitHub Actions 2021-12-16
Search
sullis
December 16, 2021
Programming
0
36
GitHub Actions 2021-12-16
GitHub Actions overview
December 16, 2021
sullis
December 16, 2021
Tweet
Share
More Decks by sullis
See All by sullis
Amazon S3 - Portland Java User Group 2024-09-17
sullis
0
61
Netty - Montreal Java User Group 2024-05-21
sullis
0
130
Netty Chicago Java User Group 2024-04-17
sullis
0
830
Java 21 - Portland Java User Group 2023-10-24
sullis
0
290
Microbenchmarking with JMH - Portland 2023-03-14
sullis
0
130
Code generation on the Java VM 2022-04-19
sullis
0
110
Mockito 2022-01-25
sullis
0
170
Apache Struts and the Equifax data breach 2021-06-03
sullis
0
54
Guardrail State of the Union 2021-04-13
sullis
0
330
Other Decks in Programming
See All in Programming
eBPF Deep Dive: Architecture and Safety Mechanisms
takehaya
12
1.1k
Functional Event Sourcing using Sekiban
tomohisa
0
120
新規学習のハードルを下げる方法とは?/ How to Make Learning Something New Easier?
nobuoooo
1
120
デザインパターンで理解するLLMエージェントの作り方 / How to develop an LLM agent using agentic design patterns
rkaga
11
2.3k
Gestaltung digitaler Lösungen – Produktions- oder Designprozess?
techstories
0
110
Reckoner における Datadog Browser Test の活用事例 / Datadog Browser Test at Reckoner
nomadblacky
0
180
Contemporary Test Cases
maaretp
0
150
Cognitoが大型アップデート!Managed Loginとパスワードレスログインを実際に使ってみた@しむそくRadio Special Day1
tmhirai
2
130
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
事業成長を爆速で進めてきたプロダクトエンジニアたちの成功談・失敗談
nealle
3
880
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
140
Leverage LLMs in Java with LangChain4j and Quarkus
hollycummins
0
110
Featured
See All Featured
KATA
mclloyd
29
14k
Why Our Code Smells
bkeepers
PRO
334
57k
Rails Girls Zürich Keynote
gr2m
94
13k
Typedesign – Prime Four
hannesfritz
40
2.4k
Navigating Team Friction
lara
183
15k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
400
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
For a Future-Friendly Web
brad_frost
175
9.4k
We Have a Design System, Now What?
morganepeng
50
7.2k
Being A Developer After 40
akosma
87
590k
4 Signs Your Business is Dying
shpigford
181
21k
It's Worth the Effort
3n
183
27k
Transcript
GitHub Actions 2021-12-16 Sean Sullivan
Agenda GitHub Actions Core concepts Security
GITHUB ACTIONS
“GitHub Actions help you automate your software development work fl
ows” source: GitHub.com
“You can write individual tasks, called actions, and combine them
to create a custom work fl ow” source: GitHub.com
Getting started
Actions tab
Actions tab Starter Work fl ow
Work fl ow editor
Work fl ow editor
Work fl ow editor
Work fl ow editor checkout
Work fl ow editor setup-java
Work fl ow editor run: sbt test
Work fl ow editor click
Work fl ow editor click
.github/work fl ows
Actions tab
Actions tab
Actions tab
Ruby On Rails uses GitHub Actions
Ruby on Rails
Ruby on Rails
Ruby on Rails
Ruby on Rails
Redis Dropwizard Log4j Open source projects using GitHub Actions twilio-java
Guardrail Net fl ix Zuul
Core concepts
Events Actions Work fl ows
create deployment deployment_status issue created pull_request push schedule label created
(and many more) Events trigger work fl ows
Work fl ows are custom automated processes that you can
set up in your repository to build, test, package, release, or deploy source: GitHub.com
GitHub webhooks GitHub Actions work fl ows
Actions are individual tasks that you can combine to create
jobs source: GitHub.com
You can create custom Actions or use Actions provided by
the GitHub community source: GitHub.com
action.yml declares the inputs and outputs for an action source:
GitHub.com
Types of Actions: JavaScript Docker source: GitHub.com
“GitHub Actions is available with GitHub Free, GitHub Pro, GitHub
Team, and GitHub Enterprise” source: GitHub.com
What if I already have an existing CI tool enabled?
Keep your existing CI tool and enable GitHub Actions
Evaluate both CI tools running side-by-side
Actions runtime Runners Virtual Environments
Runners GitHub-hosted Self-hosted
Hosted Runners “GitHub hosts Linux and Windows runners on Standard_DS2_v2
virtual machines in Microsoft Azure with the GitHub Actions runner application installed” source: GitHub.com
Self-Hosted Runners “Self-hosted runners can be physical, virtual, container, on-premises,
or in a cloud” source: GitHub.com
Self-Hosted Runners
Self-Hosted Runners C Sharp
Virtual Environments
Ubuntu 20.04 Ubuntu 18.04 Linux support
Third party actions
AWS Actions Azure Actions Google Cloud Actions
Pulumi Actions Terraform Actions Docker Actions
https://github.com/aws-actions
None
AWS: action.yml
Security
Secrets access protected keys using the secrets context object source:
GitHub.com
Secrets source: GitHub.com
Secrets source: GitHub.com
Secrets source: GitHub.com
Secrets source: GitHub.com
Self-Hosted Runners “do not use self- hosted runners with public
repositories” source: GitHub.com
Self-Hosted Runners “Forks of your public repository can potentially run
dangerous code on your self-hosted runner machine” source: GitHub.com
Final thoughts
“CI ensures that the code that we create, as a
team, works by providing us with rapid feedback on any problems”
GitHub Actions YAML Automation Conclusion
Thank you twitter.com/tinyrobots github.com/sullis
Bonus slides
None
THE END