Skip to content

Commit

Permalink
fix: Fix codebuild authentication (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonparnell authored Mar 14, 2024
1 parent 32ffb6e commit 71f79ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# Note - CodeBuild depends on this branch name. Don't change without corresponding backend change.
run: git checkout -b release-${{ steps.calc_target.outputs.target_version }}
- name: Generate artifacts
run: python ./src/main.py create-${{ inputs.release-type }}-version-artifacts --base-patch-version ${{ inputs.base-version }}
run: python ./src/main.py create-${{ inputs.release-type }}-version-artifacts --base-patch-version ${{ inputs.base-version }} --force
- name: Commit .in artifacts to branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -89,13 +89,14 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.START_CODEBUILD_ROLE }}
aws-region: us-west-2
aws-region: us-east-1
# CodeBuild timeout of 8 hours
role-duration-seconds: 3840
audience: https://sts.us-east-1.amazonaws.com
- name: Run CodeBuild
uses: dark-mechanicum/aws-codebuild@v1
env:
CODEBUILD__sourceVersion: 'pr/${{ needs.open-pr.outputs.pr_id }}'
with:
projectName: 'buildtestpublicimage1C7307A-9AzES2hf19lW'
buildspec: '{"imageOverride": "aws/codebuild/standard:7.0"}'
projectName: ${{ secrets.CODEBUILD_JOB_NAME }}
buildspec: '{"imageOverride": "aws/codebuild/standard:7.0", "imagePullCredentialsTypeOverride": "CODEBUILD"}'

0 comments on commit 71f79ec

Please sign in to comment.