File tree Expand file tree Collapse file tree 2 files changed +55
-30
lines changed
Expand file tree Collapse file tree 2 files changed +55
-30
lines changed Original file line number Diff line number Diff line change 1+ name : AWS CodeBuild CI
2+ on :
3+ pull_request :
4+ push :
5+ schedule :
6+ - cron : " 0 0 * * *" # Daily at 00:00 UTC (4 PM PDT)
7+
8+ permissions :
9+ id-token : write
10+ contents : read
11+
12+ jobs :
13+ staticAnalysis :
14+ name : Static Analysis
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Configure AWS Credentials
18+ uses : aws-actions/configure-aws-credentials@v1
19+ with :
20+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
21+ aws-region : us-west-2
22+ role-duration-seconds : 3600
23+ - name : Run Static Analysis
24+ uses : aws-actions/aws-codebuild-run-build@v1
25+ timeout-minutes : 60
26+ with :
27+ project-name : java-ddb-ec
28+ buildspec-override : codebuild/static-analysis.yml
29+ image-override : aws/codebuild/amazonlinux2-x86_64-standard:3.0
30+ build :
31+ name : Build
32+ runs-on : ubuntu-latest
33+ strategy :
34+ fail-fast : true
35+ matrix :
36+ platform :
37+ - distribution : openjdk
38+ image : " aws/codebuild/standard:3.0"
39+ - distribution : corretto
40+ image : " aws/codebuild/amazonlinux2-x86_64-standard:3.0" # Corretto only runs on AL2
41+ version : [ 8, 11 ]
42+ steps :
43+ - name : Configure AWS Credentials
44+ uses : aws-actions/configure-aws-credentials@v1
45+ with :
46+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
47+ aws-region : us-west-2
48+ role-duration-seconds : 3600
49+ - name : Build
50+ uses : aws-actions/aws-codebuild-run-build@v1
51+ timeout-minutes : 60
52+ with :
53+ project-name : java-ddb-ec
54+ buildspec-override : codebuild/${{ matrix.platform.distribution }}${{ matrix.version }}.yml
55+ image-override : ${{ matrix.platform.image }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments