File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
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
+
6
+ permissions :
7
+ id-token : write
8
+
9
+ jobs :
10
+ Build :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ distribution : [ openjdk, corretto ]
15
+ version : [ 8, 11 ]
16
+ image : [ "aws/codebuild/standard:3.0", "aws/codebuild/amazonlinux2-x86_64-standard:3.0" ]
17
+ exclude :
18
+ - distribution : corretto
19
+ image : aws/codebuild/standard:3.0 # Corretto only runs on AL2
20
+ - distribution : openjdk
21
+ image : aws/codebuild/amazonlinux2-x86_64-standard:3.0
22
+ steps :
23
+ - name : Configure AWS Credentials
24
+ uses : aws-actions/configure-aws-credentials@v1
25
+ with :
26
+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
27
+ aws-region : us-west-2
28
+ role-duration-seconds : 3600
29
+ - name : Build ${{ matrix.buildspec_name }}
30
+ uses : aws-actions/aws-codebuild-run-build@v1
31
+ timeout-minutes : 60
32
+ with :
33
+ project-name : private-java-esdk
34
+ buildspec-override : codebuild/${{ matrix.distribution }}${{ matrix.version }}.yml
35
+ image-override : ${{ matrix.image }}
You can’t perform that action at this time.
0 commit comments