Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
33
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
Netty - Montreal Java User Group 2024-05-21
sullis
0
99
Netty Chicago Java User Group 2024-04-17
sullis
0
470
Java 21 - Portland Java User Group 2023-10-24
sullis
0
250
Microbenchmarking with JMH - Portland 2023-03-14
sullis
0
120
Code generation on the Java VM 2022-04-19
sullis
0
90
Mockito 2022-01-25
sullis
0
160
Apache Struts and the Equifax data breach 2021-06-03
sullis
0
48
Guardrail State of the Union 2021-04-13
sullis
0
300
Guardrail: State of the Union 2021-03-18
sullis
0
150
Other Decks in Programming
See All in Programming
OpenAI/Gemini APIを使って EPUBを翻訳するCLIツールをつくってみた
tomiyan
0
790
Rustのweb開発を助ける 便利なツール紹介
yuki0418
1
190
わかりやすい正解を捨てて、コトに向き合う - スクラムフェス金沢2024 スポンサーセッション
yusukekokubo
0
170
[After Kotlin Fest 2024 LT Night @ Sansan] もっともっとKotlinを好きになる!K2 Compiler Pluginで遊んでみよう!
kitakkun
2
260
Namespace on read
tagomoris
2
370
はしめてのプログラミングとロボット制御
watawatavoltage
0
290
Webエディタライブラリ 「CodeMirror」から学ぶ Webアプリ開発のテクニック
ryosukeigarashi
0
250
社内 LT 会を発足し、アウトプット文化を醸成させるために考えたこと・やったこと / Starting internal LT meetings and fostering an output culture
mackey0225
3
120
CSC307 Lecture 13
javiergs
PRO
0
150
ピグパーティにおけるMongoDB CommunityバージョンからAtlasへの移行事例
10969hotaka
0
130
さきがけから振り返るアーキテクチャ刷新 / Reflecting on the Architectural Renewal from the Vanguard
nrslib
2
770
大規模マルチテナントを解決するYugabyteDBという選択肢
nnaka2992
1
250
Featured
See All Featured
BBQ
matthewcrist
82
9k
Building Effective Engineering Teams - LeadDev
addyosmani
47
2.2k
How to Ace a Technical Interview
jacobian
274
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
229
130k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
149
45k
A Modern Web Designer's Workflow
chriscoyier
689
190k
KATA
mclloyd
20
13k
Writing Fast Ruby
sferik
623
60k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
GraphQLとの向き合い方2022年版
quramy
36
13k
Designing with Data
zakiwarfel
96
5k
Fashionably flexible responsive web design (full day workshop)
malarkey
399
65k
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