Skip to content

Commit af1503a

Browse files
lucasmcdonald3josecorella
authored andcommitted
chore: Run CodeBuild from Github Actions (#49)
1 parent ca4c763 commit af1503a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}

0 commit comments

Comments
 (0)