â ã¯ããã«
GitHub Self-hosted Runner in AWS CodeBuild ã£ã¦ã®ããããã¨ãç¥ã£ãã®ã§ã¡ã¢ã
ç®æ¬¡
ãï¼ãGitHub Self-hosted Runner in AWS CodeBuild ãï¼ï¼è£è¶³ï¼GitLab ã® Runner ãµãã¼ã ãï¼ãè¨å®æé ä¾ ãStep 1: Create a CodeBuild project with a webhook ãStep 2: Update your GitHub Actions workflow YAML ãStep 3: Review your results
ãï¼ãGitHub Self-hosted Runner in AWS CodeBuild
* 2024å¹´4æ24æ¥ã«ãããã¼ã¸ãåã®ãã«ããµã¼ãã¹ã§ããCodeBuildã ãGitHub Actionãã¹ãã©ã³ãã¼ããµãã¼ãããã
https://aws.amazon.com/jp/about-aws/whats-new/2024/04/aws-codebuild-managed-github-action-runners/
ï¼ï¼è£è¶³ï¼GitLab ã® Runner ãµãã¼ã
* GitLab ããµãã¼ããã¦ãã
https://aws.amazon.com/jp/about-aws/whats-new/2024/09/aws-codebuild-managed-gitlab-runners/
ãï¼ãè¨å®æé ä¾
* 以ä¸ã®å ¬å¼ããã¥ã¡ã³ããåèã«ããã¨ãã
https://docs.aws.amazon.com/ja_jp/codebuild/latest/userguide/action-runner.html
Step 1: Create a CodeBuild project with a webhook
[1] CodeBuild ã表示
* 以ä¸ã®ãµã¤ãããAWSããã¼ã¸ã¡ã³ãã³ã³ã½ã¼ã«ã®ãCodeBuildãã表示ãã
https://console.aws.amazon.com/codesuite/codebuild/home
[2] ãã«ãããã¸ã§ã¯ããä½æ
* 以ä¸ã®ãµã¤ãã®ç»é¢ãã£ããã£ã¼ãåèã«ããã
https://developer.mamezou-tech.com/blogs/2024/04/29/githubactions-codebuild-runner/
https://developers.cyberagent.co.jp/blog/archives/47677/
1) ãSourceãã§ä»¥ä¸ãå ¥å + Source provider: [GitHub]ãé¸æ + Repository: [Repository in my GitHub account]ãé¸æ + Repository URL: https://github.com/<user-name>/<repository-name> 2) ãPrimary source webhook eventsã ã§ä»¥ä¸ãå ¥å + Event type: [WORKFLOW_JOB_QUEUED] 3) ãEnvironmentãã§ä»¥ä¸ãå ¥å + provisioning mode: [OnDemand]ãé¸æ + Environment Image: [Managed Image]ãé¸æ (Imageã«ã¤ãã¦ã¯ã以ä¸ãEC2 ã³ã³ãã¥ã¼ãã£ã³ã°ã¤ã¡ã¼ã¸ããåç §) + Computing: [EC2]ãé¸æ 4) ãBuildspecãã§ä»¥ä¸ãå ¥å + [Insert Build command]ãé¸æ 5) [Create build project]ãé¸æ
EC2 ã³ã³ãã¥ã¼ãã£ã³ã°ã¤ã¡ã¼ã¸
https://docs.aws.amazon.com/ja_jp/codebuild/latest/userguide/ec2-compute-images.html
Step 2: Update your GitHub Actions workflow YAML
* Github Actions ãå®è£ ãã
ãµã³ãã«
name: Hello World on: [push] jobs: Hello-World-Job: runs-on: # codebuild-<ããã¸ã§ã¯ãå>-${{ github.run_id }}-${{ github.run_attempt }} - codebuild-myProject-${{ github.run_id }}-${{ github.run_attempt }} # - image:arm-3.0 # - instance-size:small steps: - run: echo "Hello World!"
Step 3: Review your results
* GitHub actionsãPushãªã©ãã¦åããã¦åä½ç¢ºèªãã
åèæç®
https://qiita.com/k-kojima-yumemi/items/573bda88d0fb607b3224
ä»å¾å½¹ã«ç«ã¡ãããªãµã¤ã
https://matsudamper.hatenablog.com/entry/2023/11/19/064050
https://zenn.dev/bm_sms/articles/1604de9006d84d
with terraform
https://atsum.in/aws/codebuild-as-self-hosted-runner/
é¢é£è¨äº
Github Actions ï½ Self-hosted runners / å
¥éç·¨ ï½
https://dk521123.hatenablog.com/entry/2023/12/18/204119
Github Actions ï½ Self-hosted runners / ããããç·¨ ï½
https://dk521123.hatenablog.com/entry/2024/02/07/002736
Github Actions ï½ Self-hosted runners 㧠Offline ã ã£ãå ´åã®å¯¾å¿ã«ã¤ãã¦èãã ï½
https://dk521123.hatenablog.com/entry/2024/12/31/184145
CodeBuild ï½ å
¥éç·¨ ï½
https://dk521123.hatenablog.com/entry/2020/01/21/221122