Skip to content

Commit 84f4b1d

Browse files
chore: Run CodeBuild from Github Actions (#49)
1 parent 2f1fbfe commit 84f4b1d

File tree

2 files changed

+35
-25
lines changed

2 files changed

+35
-25
lines changed
Lines changed: 35 additions & 0 deletions
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 }}

buildspec.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)