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
M-Yamashita
May 11, 2022
Programming
3
870
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
継続的な活動で築く地方エンジニアの道
myamashii
2
620
テストの高速化と品質保証の第一歩 GitHub ActionsとRSpecの基本入門
myamashii
1
570
Contributionとカンファレンス登壇への 背中を押して頂いた方々へ
myamashii
1
1.5k
はてなブログ作成から投稿までをGitHub Actionsで自動化する
myamashii
3
1.2k
Webサービス開発者としてスタートしてからOSS Contributionまでの道のり
myamashii
0
720
Fukuoka.rb 2020年度活動報告
myamashii
0
760
OSS Contributionから感じたこと
myamashii
0
360
手動テストやインフラ構築は自動化しよう
myamashii
0
17k
試行錯誤の勉強法
myamashii
1
4.8k
Other Decks in Programming
See All in Programming
DMMオンラインサロンアプリのSwift化
hayatan
0
270
ISUCON14感想戦で85万点まで頑張ってみた
ponyo877
1
790
DevFest - Serverless 101 with Google Cloud Functions
tunmise
0
140
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
2.2k
カンファレンス動画鑑賞会のススメ / Osaka.swift #1
hironytic
0
200
Alba: Why, How and What's So Interesting
okuramasafumi
0
240
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
200
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
140
『改訂新版 良いコード/悪いコードで学ぶ設計入門』活用方法−爆速でスキルアップする!効果的な学習アプローチ / effective-learning-of-good-code
minodriven
29
4.8k
GitHub CopilotでTypeScriptの コード生成するワザップ
starfish719
28
6.1k
Package Traits
ikesyo
2
230
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
3
310
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.2k
Become a Pro
speakerdeck
PRO
26
5.1k
Designing for humans not robots
tammielis
250
25k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
3k
The Invisible Side of Design
smashingmag
299
50k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
19k
Code Review Best Practice
trishagee
65
17k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
Practical Orchestrator
shlominoach
186
10k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Designing Experiences People Love
moore
139
23k
Mobile First: as difficult as doing things right
swwweet
222
9.2k
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)
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ