Skip to content

Commit 82bd1ca

Browse files
Update codebuild actions to use aws-codebuild-run-build
1 parent 9700a13 commit 82bd1ca

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/build-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ jobs:
116116
role-duration-seconds: 28800
117117
audience: https://sts.us-east-1.amazonaws.com
118118
- name: Run CodeBuild
119-
uses: dark-mechanicum/aws-codebuild@v1
120-
env:
121-
CODEBUILD__sourceVersion: 'pr/${{ needs.open-pr.outputs.pr_id }}'
119+
uses: aws-actions/aws-codebuild-run-build@v1
122120
with:
123-
projectName: ${{ secrets.CODEBUILD_JOB_NAME }}
124-
buildspec: '{"imageOverride": "aws/codebuild/standard:7.0", "imagePullCredentialsTypeOverride": "CODEBUILD"}'
121+
project-name: ${{ secrets.CODEBUILD_JOB_NAME }}
122+
image-override: "aws/codebuild/standard:7.0"
123+
image-pull-credentials-type-override: "CODEBUILD"
124+
source-version-override: "pr/${{ needs.open-pr.outputs.pr_id }}"

.github/workflows/validate-image.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
run: |
3939
PR_NUMBER=${{ inputs.pr-number }}
4040
PR_INFO=$(gh pr view $PR_NUMBER --json number,title,isCrossRepository)
41-
41+
4242
# Check if PR exists
4343
if [ -z "$PR_INFO" ]; then
4444
echo "Error: PR #$PR_NUMBER does not exist"
4545
exit 1
4646
fi
47-
47+
4848
# Check PR title
4949
PR_TITLE=$(echo $PR_INFO | jq -r '.title')
5050
EXPECTED_TITLE_PREFIX="release: v${{ inputs.image-version }}"
@@ -54,14 +54,14 @@ jobs:
5454
echo "Actual title: $PR_TITLE"
5555
exit 1
5656
fi
57-
57+
5858
# Check if PR is from a fork
5959
IS_CROSS_REPO=$(echo $PR_INFO | jq -r '.isCrossRepository')
6060
if [ "$IS_CROSS_REPO" = "true" ]; then
6161
echo "Error: PR is from a forked repository"
6262
exit 1
6363
fi
64-
64+
6565
echo "PR validation successful"
6666
echo "pr_id=$PR_NUMBER" >> $GITHUB_OUTPUT
6767
@@ -82,9 +82,9 @@ jobs:
8282
role-duration-seconds: 28800
8383
audience: https://sts.us-east-1.amazonaws.com
8484
- name: Run CodeBuild
85-
uses: dark-mechanicum/aws-codebuild@v1
86-
env:
87-
CODEBUILD__sourceVersion: 'pr/${{ needs.validate-pr.outputs.pr_id }}'
85+
uses: aws-actions/aws-codebuild-run-build@v1
8886
with:
89-
projectName: ${{ secrets.CODEBUILD_VALIDATION_JOB_NAME }}
90-
buildspec: '{"imageOverride": "aws/codebuild/standard:7.0", "imagePullCredentialsTypeOverride": "CODEBUILD"}'
87+
project-name: ${{ secrets.CODEBUILD_JOB_NAME }}
88+
image-override: "aws/codebuild/standard:7.0"
89+
image-pull-credentials-type-override: "CODEBUILD"
90+
source-version-override: "pr/${{ needs.validate-pr.outputs.pr_id }}"

0 commit comments

Comments
 (0)