Skip to content

Commit

Permalink
Add ci_setup, misc wording
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-roos committed Dec 5, 2024
1 parent 6528992 commit 4c96565
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ pre-commit run --all-files

## License

This library is licensed under the MIT-0 License.
This repo is licensed under the MIT-0 License.
2 changes: 1 addition & 1 deletion auto-upgrader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

A tool for automating recipe upgrades for meta-aws.

#TODO: there should be an info how to just checkout this folder as this is used in CI it should be just this folder.
See https://github.com/aws4embeddedlinux/meta-aws/blob/master/.github/workflows/auto-recipe-update.yml as a reference how to use this.
34 changes: 34 additions & 0 deletions docs/ci_setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# CI Setup
## This describes the meta-aws, meta-aws-demos CI setup - setup github runner on CodeBuild

```
git clone https://github.com/aws4embeddedlinux/aws4embeddedlinux-ci-examples.git
cd aws4embeddedlinux-ci-examples
npm install .
npm run build
export AWS_DEFAULT_REGION=us-west-2
```

(only in this region you will be able to see aws4embeddedlinux repos)

```
cdk bootstrap
cdk deploy EmbeddedLinuxCodeBuildProject --require-approval=never
```

## Login into CodeBuild
- clone CodeBuild project - meta-aws-demos, meta-aws

- Manage default source credential -> OAuth app -> CodeBuild managed token -> connect to GitHub -> confirm

> [!IMPORTANT]
> If you are not selecting OAuth app, you will not see aws4embeddedlinux repos!
```
Select "Primary source webhook events" -> "Webhook - optional" -> "Rebuild every time a code change is pushed to this repository"
Add "Filter group 1" -> "WORKFLOW_JOB_QUEUED"
In the GitHub workflow:
Modify the GitHub action runs-on: ${{ vars.CODEBUILD_RUNNER_NAME }}-${{ github.run_id }}-${{ github.run_attempt }} CODEBUILD_RUNNER_NAME should be codebuild-EmbeddedLinuxCodebuildProjeNAME with prefix codebuild-meta-aws-demos
```

0 comments on commit 4c96565

Please sign in to comment.