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でZennの記事を限定公開する
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
M-Yamashita
May 11, 2022
Programming
3
1k
GitHub ActionsでZennの記事を限定公開する
Fukuoka.rb 0x100 回 LT 大会 (#256)での登壇資料です。
https://fukuokarb.connpass.com/event/245647/
M-Yamashita
May 11, 2022
Tweet
Share
More Decks by M-Yamashita
See All by M-Yamashita
アクセスピークを制するオートスケール再設計: 障害を乗り越えKEDAで実現したリソース管理の最適化
myamashii
3
2.6k
継続的な活動で築く地方エンジニアの道
myamashii
2
720
テストの高速化と品質保証の第一歩 GitHub ActionsとRSpecの基本入門
myamashii
1
670
Contributionとカンファレンス登壇への 背中を押して頂いた方々へ
myamashii
1
1.9k
はてなブログ作成から投稿までをGitHub Actionsで自動化する
myamashii
3
1.3k
Webサービス開発者としてスタートしてからOSS Contributionまでの道のり
myamashii
0
820
Fukuoka.rb 2020年度活動報告
myamashii
0
840
OSS Contributionから感じたこと
myamashii
0
450
手動テストやインフラ構築は自動化しよう
myamashii
0
17k
Other Decks in Programming
See All in Programming
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
440
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
CSC307 Lecture 04
javiergs
PRO
0
650
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.8k
CSC307 Lecture 09
javiergs
PRO
1
830
CSC307 Lecture 01
javiergs
PRO
0
680
ThorVG Viewer In VS Code
nors
0
760
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
580
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
440
AIエージェントの設計で注意するべきポイント6選
har1101
7
3.4k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
62
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
BBQ
matthewcrist
89
10k
Building an army of robots
kneath
306
46k
We Are The Robots
honzajavorek
0
160
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
GitHub's CSS Performance
jonrohan
1032
470k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
170
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
48
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
130
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Transcript
2022-05-11 Fukuoka.rb 0x100 ճ LT େձ GitHub ActionsͰZennͷهࣄΛݶఆެ։͢Δ M-Yamashita
ࣗݾհ • ࢁԼ խਓ • όοΫΤϯυΤϯδχΞ@Ԭ • ࣄͷRailsྺ: 2ఔ •
GitHub: @M-Yamashita01 • Twitter: @M_Yamashii
͢͜ͱ GitHub Actions + Cloud RunͰ ZennͷهࣄΛݶఆެ։͢Δ
ॻ͍ͨهࣄΛಛఆͷਓ͚ͨͪͩʹݟ͍ͤͨʂ ͦΜͳܦݧ͋Γ·ͤΜ͔ʁ ͬͦ͘͞Ͱ͕͢
ࢲ࠷ۙͦͷܦݧʹग़ձ͍·ͨ͠
• ओʹZennΛ͍RubyRailsͳͲʹؔ͢ΔهࣄΛΞοϓ͖ͯͨ͠ • Zennʹߘ͖ͯͨ͠هࣄɺެࣜαΠτެ։͞Ε͍ͯΔใ͔Β ݸਓͰௐࠪ͠·ͱΊͨͷ͕΄ͱΜͲ ࠓ·Ͱ
• ٕज़هࣄͷࣥචʹ͋ͨΓɺଞͷํʹެࣜϦϑΝϨϯεʹؔ͢Δ࣭Λͯ͠ ճΛ͍ͨ • ZennͰهࣄΛॻ্͖͕͛ͨɺެ։લʹΞυόΠεΛͯ͘͠Εͨਓ͚ͩʹ ؒҧ͍ͳ͍͔ݟͯΒ͍͍ͨ • Zennʹݶఆެ։ͷػೳ͕ͳͦ͞͏ʢ2022/05/03 ຊࢿྉ࡞࣌ʣ ͖͔͚ͬ
Ͳ͏ʹ͔ͯ͠ݶఆެ։Ͱ͖ͳ͍͔ʁ
ࣗͷଞʹݶఆެ։Λߟ͑ͨਓ͕͍Δͣ
None
https://zenn.dev/e_koma/articles/20210104-zenn-preview
͜Εͩʂ
ͲΜͳํ๏͔ʁ
લఏɿZennͷCLI͔ΒϓϨϏϡʔΛදࣔ ~/xxxxx/M-Yamashita01/zenn-article ❯ npx zenn preview 👀 Preview: http://localhost:8000
հ͞Ε͍ͯͨݶఆެ։ͷํ๏ Container Registry Cloud Run Push Image Deploy Use Image
Access Docker fi le ENTRYPOINT ["npx", "zenn", "preview"] https://xxxxx.a.run.app
ΊͬͪΌศརͦ͏ʂ
͜ͷํ๏Λͬͨͱ͖ʹ ՝͕͍͔ͭ͘ग़͖ͯͨ
• ෳͷίϚϯυΛखಈ࣮ߦ͢Δͷख͕͔͔ؒΔ • ZennͱGitHubΛ࿈ܞࡁΈͳͷͰɺهࣄ࡞ͷPull RequestΛτϦΨʔʹ ϓϨϏϡʔΛݟ͍ͨ • ϓϨϏϡʔʹͬͨCloud RunͷαʔϏείϯςφΠϝʔδͷফ͠ΕΛ ආ͚͍ͨ
՝
ղܾͰ͖ΔΑ ͦ͏ɺGitHub ActionsͳΒͶ
ߏ Container Registry Cloud Run Push article Deploy Access GitHub
Actions Pull Request Push image Use Image https://xxxxx.a.run.app Post preview url
• Pull RequestͷopenɺpushʹΑΔߋ৽ • طଘͷίϯςφΠϝʔδɺCloud RunͷαʔϏεΛআ • Container RegistryΠϝʔδϓογϡɺCloud RunʹσϓϩΠ
• σϓϩΠྃޙʹϓϨϏϡʔͷURLΛPull Requestʹߘ • Pull Request close • طଘͷίϯςφΠϝʔδɺCloud RunͷαʔϏεΛআ ϫʔΫϑϩʔ
ಈ࡞݁Ռ (Pull Request open)
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ