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
800
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
560
テストの高速化と品質保証の第一歩 GitHub ActionsとRSpecの基本入門
myamashii
1
510
Contributionとカンファレンス登壇への 背中を押して頂いた方々へ
myamashii
1
1.5k
はてなブログ作成から投稿までをGitHub Actionsで自動化する
myamashii
3
1.1k
Webサービス開発者としてスタートしてからOSS Contributionまでの道のり
myamashii
0
690
Fukuoka.rb 2020年度活動報告
myamashii
0
730
OSS Contributionから感じたこと
myamashii
0
330
手動テストやインフラ構築は自動化しよう
myamashii
0
17k
試行錯誤の勉強法
myamashii
1
4.7k
Other Decks in Programming
See All in Programming
Cloud Adoption Framework にみる組織とクラウド導入戦略
tomokusaba
2
670
フロントエンドの現在地とこれから
koba04
10
4.6k
モジュラモノリス、その前に / Modular monolith, before that
euglena1215
8
740
色んなオートローダーを覗き見る #phpcon_okinawa
o0h
PRO
5
430
実践サーバーレスパフォーマンスチューニング ~その実力に迫る~ / Practical Serverless Performance Tuning ~A Close Look at its Power~
seike460
PRO
2
230
Kubernetes上でOracle_Databaseの運用を楽にするOraOperatorの紹介
nnaka2992
0
170
Scan with Decoupled Look-back and Onesweep Radix Sort
shocker_0x15
0
150
2024-10-02 dev2next - Application Observability like you've never heard before
jonatan_ivanov
0
200
DevFest Android in Korea 2024 - 안드로이드의 문단속 : 앱을 지키는 암호화 이야기
mdb1217
1
170
文化が生産性を作る
jimpei
3
610
MLOps in Mercari Group’s Trust and Safety ML Team
cjhj
1
130
もう実家に手頃な情シス娘は不要!Bedrockでもう一人の娘を作る
komakichi
2
130
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.5k
Faster Mobile Websites
deanohume
304
30k
GraphQLの誤解/rethinking-graphql
sonatard
65
9.9k
A Tale of Four Properties
chriscoyier
156
22k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Done Done
chrislema
181
16k
BBQ
matthewcrist
85
9.2k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
How to train your dragon (web standard)
notwaldorf
87
5.6k
Happy Clients
brianwarren
97
6.7k
For a Future-Friendly Web
brad_frost
174
9.4k
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)
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ