Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[初心者] GitHub Actions と App Runner でコンテナデプロイやってみた

[初心者] GitHub Actions と App Runner でコンテナデプロイやってみた

2021/12/06 JAWS-UG朝会 #28 にて [初心者] GitHub Actions と App Runner でコンテナデプロイやってみた と題名で Lightning Talk させていだたきました

79c7cde17310f3a8ee640411baed289d?s=128

Hayato Watanabe

December 06, 2021
Tweet

Transcript

  1. 2021/12/6 ౉ล ൏ਓ [ॳ৺ऀ] GitHub Actions ͱ App Runner Ͱ

    ίϯςφσϓϩΠ΍ͬͯΈͨ #jawsug_asa
  2. ໨࣍ • ࣗݾ঺հ • ߏ੒ • ΍ͬͯΈͨखॱ • ΋ͬͱ͍͍αϙʔτग़ͨ •

    ײ૝
  3. ࣗݾ঺հ ౉ล ൏ਓ ࢓ࣄ͸ AWS Amplify Λ࢖ͬͨ΢ΣϒΞϓϦ։ൃ
 (ओʹόοΫΤϯυ୲౰) ίϯςφ(ಛʹΦʔέετϨʔγϣϯ)Α͘Θ͔ͬͯͳ͍🥺
 ίϯςφͭΑͭΑʹͳΓ͍ͨͳ͊…

    Twitter: @iho9z2qywfzt20w
  4. • Docker fi le ΛؚΉ Vapor ϓϩδΣΫτ • GitHub Actions

    Ͱ Docker ΠϝʔδΛ ECR ʹొ࿥ • AWS App Runner ͰϗεςΟϯά • (Route 53 ͰυϝΠϯ) ߏ੒
  5. ΍ͬͯΈͨखॱ Vapor ϓϩδΣΫτ࡞੒

  6. ΍ͬͯΈͨखॱ GitHub Actions ఆٛϑΝΠϧ௥Ճ Continuous delivery of container applications to

    AWS Fargate with GitHub Actions
  7. ΍ͬͯΈͨखॱ IAM Ϣʔβʔͷ࡞੒ͱ GitHub ΁ೝূ৘ใొ࿥

  8. ΍ͬͯΈͨखॱ ECR ͱ App Runner ඥ෇͚

  9. ΍ͬͯΈͨखॱ CI/CD ύΠϓϥΠϯ׬੒ 🎉

  10. ΋ͬͱ͍͍αϙʔτग़ͨ AWS App Runner supports GitHub Actions to build and

    deploy applications If you have your source code in a GitHub repository, you can use GitHub Actions to enable App Runner to build a Docker image based on the language runtime and to deploy your application based on the generated image. For supported runtimes on App Runner, refer to the documentation. If you already have a container image of your application in a GitHub repository, you can use GitHub Actions to directly use the image to deploy your application on App Runner. ιʔείʔυ͕GitHubϦϙδτϦʹ͋Δ৔߹ɺGitHub ActionsΛ࢖༻͢Δ͜ͱͰɺApp Runner͕ݴޠ ϥϯλΠϜʹج͍ͮͯDockerΠϝʔδΛߏங͠ɺੜ੒͞ΕͨΠϝʔδʹج͍ͮͯΞϓϦέʔγϣϯΛ σϓϩΠ͢Δ͜ͱ͕Ͱ͖·͢ɻApp RunnerͰαϙʔτ͞Ε͍ͯΔϥϯλΠϜʹ͍ͭͯ͸ɺυΩϡϝϯ τΛࢀর͍ͯͩ͘͠͞ɻΞϓϦέʔγϣϯͷίϯςφΠϝʔδ͕͢ͰʹGitHubϦϙδτϦʹ͋Δ৔߹ ͸ɺGitHub ActionsΛ࢖༻ͯ͠ɺͦͷΠϝʔδΛ௚઀࢖༻ͯ͠App RunnerʹΞϓϦέʔγϣϯΛσϓ ϩΠ͢Δ͜ͱ͕Ͱ͖·͢ɻ
  11. ײ૝ • ؆୯ʹͰ͖ͨʂ • ୹࣌ؒͰߏஙͰ͖ͨ • ίϯςφʹ͍ͭͯৄ͍͠஌͕ࣝͳͯ͘΋σϓϩΠ·Ͱ࣋ͬͯߦ͚ͯඇৗʹָ ͍͠ • ॳ৺ऀͰ΋ɺ৮Γ΍͍͢Α͏ʹٕज़͕ந৅Խ͞Ε͍ͯͯͱ͖ͬͭ΍͍͢ʂ