$30 off During Our Annual Pro Sale. View Details »

First Steps to CI/CD for Module Development / モジュール開発向けCI/CDはじめの一歩

First Steps to CI/CD for Module Development / モジュール開発向けCI/CDはじめの一歩

Drupal Meeup 羽田#40
https://drupal-meetup-haneda.connpass.com/event/246778/

Drupalでモジュールを開発するためにGitLab CI/CDを利用してPipelineを回すための方法

Takahiro Komatsu

May 26, 2022
Tweet

More Decks by Takahiro Komatsu

Other Decks in Programming

Transcript

  1. Ϟδϡʔϧ։ൃ޲͚ CI/CD ͸͡ΊͷҰา খদߴኍ 
 2022/5/26 Drupal Meetup Ӌా 1

  2. ࣗݾ঺հɿখদߴኍʢ͜·͔ͭͨΖʣ - Ѫ஌ݝמ୩ࢢࡏॅ - େֶɾେֶӃɿγεςϜ৘ใՊֶʢෳࡶܥՊֶʣઐ߈ - ΞΫΠΞδϟύϯ߹ಉձࣾɿTechnical Account Manager -

    ͜ͱϥϘ ୅ද ϑϦʔϥϯεΤϯδχΞɿճ࿏ઃܭɾج൘ઃ ܭ͔ΒαʔόߏஙɾΞϓϦ։ൃ·ͰίϯϐϡʔςΟϯάʹؔ ΘΔָ͍͜͠ͱͳΒԿͰ΋΍ͬͯ·͢ - ࠷ۙͷڵຯ: Drupal / Rust / WebAssembly / WebRTC Kubernetes / FPGA / ௿ϨΠϠ / ࣗ࡞OS 
 ίϯύΠϥ / ΞΫηγϏϦςΟ 
 NLP (ࣗવݴޠॲཧ) / KR (஌ࣝදݱ) 2
  3. ࠷ۙ͸ Drupal ͷٕज़ॻ΋ॻ͍ͯ·͢ 3 https://nextpublishing.jp/ book/14134.html https://nextpublishing.jp/ book/12999.html https://www.amazon.co.jp/ dp/B09QQRQ9SW

  4. 4

  5. Open Source Conference - Eձ৔ 10:00-10:45 ηϛφʔηογϣϯ 
 DrupalΛ׆༻ͨ͠Webίϯςϯπ؅ཧͷಈ޲ -

    Eձ৔ 11:00-11:45 ϛʔςΟϯάηογϣϯ 
 Drupal Meetup ๛ాͷ঺հ͓Αͼ 
 Drupal Meetup ๛ాࢧ෦Ͱൃߦͨ͠ిࢠॻ੶ɾ ঎ۀॻ੶ͷ঺հ - λΠϜςʔϒϧ 
 https://register.ospn.jp/osc2022-online- nagoya/modules/eventrsv/1.html - ࢀՃਃ͠ࠐΈ 
 https://ospn.connpass.com/event/240067/ 2022 Online Nagoya 5
  6. Eձ৔ 11:00-11:45 Drupal Meetup ๛ా #23 6 ͥͻZoomͰϛʔςΟϯάʹࢀՃ͍ͯͩ͘͠͞ʂ 
 https://ospn.connpass.com/event/240067/

  7. Ұॹʹ OSC Λָ͠Έ·͠ΐ͏ʂ 7

  8. ΞδΣϯμ - ͳͥCI/CD͕ඞཁͳͷ͔ʁ - ·ͣςετΛॻ͜͏ - CI/CDΛߦ͏ͨΊͷπʔϧ - σϞ 8

  9. ͳͥCI/CD͕ඞཁͳͷ͔ʁ 9

  10. CI/CD͕ͳ͍͜ͱͷσϝϦοτ ίʔυΛमਖ਼ͯ͠ຊ൪؀ڥʹ൓ө͢Δ·Ͱͷ࡞ۀྔ͕ଟ͘ͳΔ → ౰વͳ͕Β͕͔͔࣌ؒΔ → ίʔυमਖ਼ʹର͢ΔϑοτϫʔΫ͕ॏ͘ͳΔ → ίʔυͷߋ৽ස౓͕௿͘ͳΔ → ηΩϡϦςΟͳͲͷରԠ͕ޙखޙखʹͳΔ

    → ͱΓ͋͑ͣಈ͚͹OKͷਫ਼ਆʹͳΔ → ίʔυ͕ಈ͔ͳ͘ͳͬͨͱ͖ͷमਖ਼͕ݱ࣮తͳ࡞ۀྔʹऩ·Βͳ͘ͳΔ → ... 10
  11. 11

  12. ίʔυΛ͙͢ʹ൓өͤ͞ΒΕΔΑ͏ 
 αʔόʹ௚઀Ξοϓϩʔυʂ 12

  13. 13

  14. ίʔυ͕ಈ͔ͳ͍... 14

  15. 15

  16. ը໘͕ਅͬന 16

  17. 17

  18. 18

  19. Կ͕ඞཁͩͬͨͷ͔ʁ 19

  20. ςετ 20

  21. Ͱ΋... 21

  22. ςετͦΕࣗମ΋ 
 ίʔυͰ͢ΑͶʁ 22

  23. 23

  24. ·ͣςετΛॻ͜͏ - ςετͦΕࣗମ΋ίʔυ - ιʔείʔυͱςετίʔυ͸྆ྠ - ιʔείʔυͰ͸ͳ͘ςετίʔυ͔Βॻ͜͏ 
 ʢTDD: Test-Driven

    Developmentʣ 24
  25. CI/CDΛߦ͏ͨΊͷπʔϧ - GitLab CI/CD (GitLab) 
 https://docs.gitlab.com/ee/ci/ - GitHub Actions

    (GitHub) 
 https://docs.github.com/ja/actions - Bitbucket pipelies (Bitbucket) 
 https://www.atlassian.com/ja/software/ bitbucket/features/pipelines 25
  26. GitLab - DrupalCon North America 2021 
 https://www.youtube.com/ watch?v=IIxbaT-jmNc -

    DrupalCon Europe 2021 
 https://www.youtube.com/ watch?v=-3k805fFfIY - Acquia Code Studio 
 https://docs.acquia.com/code- studio/ https://about.gitlab.com 26
  27. Demo 27

  28. 28 ύΠϓϥΠϯ εςʔδ δϣϒ" δϣϒ# εςʔδ δϣϒ" δϣϒ# εςʔδ δϣϒ"

    δϣϒ# δϣϒ$ δϣϒ% δϣϒ$
  29. 29 HJUMBCDJZNM CVJME CVJMEKPC UFTU VOJUUFTUKPC MJOUUFTUKPC EFQMPZ EFQMPZKPC

  30. ৄࡉ͸ʮDrupal 9 ͓͍͍͠Ϩγϐूʯ - ஶऀ: Drupal Meetup ๛ాࢧ෦ - ൃߦࣾ:

    ΠϯϓϨε R&D - ൃߦ೔: 2021/12/17 - 150 ϖʔδʢҹ࡮൛ʣ - ࢴ൛ 2,420ԁ 
 ిࢠ൛ 1,760ԁ - https://nextpublishing.jp/book/14134.html - ISBN: 9784295600091 30
  31. ໨࣍ɿDrupal 9 ͓͍͍͠Ϩγϐू - 1ষ GitLab.com Ͱखܰʹ࢝ΊΔ CI؀ڥߏங - 2ষ

    ΦϯϓϨϛεͰࣗ෼͚ͩͷ CI؀ڥߏங - 3ষ Ϟδϡʔϧ։ൃͰCI࣮ફ - 4ষ DrushͱαΠτΤΠϦΞεͰ ָʑαΠτ؅ཧ 31 - 5ষ GroupϞδϡʔϧͰձһݶఆ αΠτΛߏங - 6ষ JamstackͰϔουϨε DrupalΛര଎ߏங - 7ষ WebformͰ؆୯ϑΥʔϜ੍ ࡞ - 8ষ MauticͱDrupalͰߦ͏ࣗಈ ࿈ܞ
  32. Conway, Melvin E. "How Do Comittees Invent?" Datamation 14, no.

    5 (1968):28?31 (޿ٛͷ)γεςϜΛσβΠϯ͢Δ૊৫͸ɺ 
 ͦͷ૊৫ͷίϛϡχέʔγϣϯߏ଄Λ 
 ίϐʔͨ͠σβΠϯΛੜΈग़͢͜ͱʹͳΔ 
 "Any organization that designs a system (de f ined broadly) will produce 
 a design whose structure is a copy of 
 the organization's communication structure." 32
  33. CI/CD͸πʔϧͷ࿩ʹ 
 ͍͍ͭͭམͪ΍͍͢ 33

  34. 34

  35. ։ൃϫʔΫϑϩʔ΋ 
 ։ൃνʔϜ΋ 
 γεςϜͰ͢ΑͶʁ 35

  36. ։ൃख๏ νʔϜͷίϛϡχέʔγϣϯ 36

  37. ΑΓྑ͍ίʔυΛ ੜΈग़ͨ͢Ίʹ 37

  38. গͣͭ͠ 
 ΑΓྑ͍͖ͯ͘͠·͠Α͏ʂ 38

  39. Thank you ! 39

  40. ࢀߟࢿྉ 1 - ঎ۀࢽʮDrupal 9 Web։ൃ͜ͱ͸͡Ίʯ 
 https://nextpublishing.jp/book/12999.html - ঎ۀࢽʮDrupal

    9 ͓͍͍͠Ϩγϐूʯ 
 https://nextpublishing.jp/book/14134.html - ಉਓࢽʮDrupal 9 ͓͍͍͠Ϩγϐू 2ʯ 
 https://www.amazon.co.jp/dp/B09QQRQ9SW 40
  41. ࢀߟࢿྉ 2 - GitLab CI/CD (GitLab) 
 https://docs.gitlab.com/ee/ci/ - DrupalCon

    North America 2021 
 https://www.youtube.com/watch?v=IIxbaT-jmNc - DrupalCon Europe 2021 
 https://www.youtube.com/watch?v=-3k805fFfIY - Acquia Code Studio 
 https://docs.acquia.com/code-studio/ 41
  42. ࢀߟࢿྉ 3 - Conway, Melvin E. "How Do Comittees Invent?"

    Datamation 14, no. 5 (1968):28?31 
 https://web.archive.org/web/20191023135318/http:// www.melconway.com/Home/Committees_Paper.html - ʢ࡞ऀڐ୚ʣLINEελϯϓʮ͏·ϙϯ & ʹΌΜίπʯ 
 https://store.line.me/stickershop/product/9215966 42