-
Notifications
You must be signed in to change notification settings - Fork 171
42 lines (40 loc) · 1.23 KB
/
codebuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CodeBuild
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
run-build-and-tests:
runs-on: ubuntu-latest
steps:
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
inline-session-policy: >-
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["codebuild:StartBuild", "codebuild:BatchGetBuilds"],
"Resource": ["arn:aws:codebuild:us-west-2:950438895271:project/IsisCodeBuild-52nifRxFNgrA"]
},
{
"Effect": "Allow",
"Action": ["logs:GetLogEvents"],
"Resource": [
"arn:aws:logs:us-west-2:950438895271:log-group:isisbuild-cloudwatch:*"
]
}
]
}
- name: Run CodeBuild
uses: aws-actions/aws-codebuild-run-build@v1
with:
project-name: IsisCodeBuild-52nifRxFNgrA