aws-actions / aws-codebuild-run-build

Run an AWS CodeBuild project as a step in a GitHub Actions workflow job.
https://aws.amazon.com/codebuild
Apache License 2.0
274 stars 139 forks source link

Support `--image-override` #86

Open yellowmamba opened 2 years ago

yellowmamba commented 2 years ago

Could you add support for --image-override option? Happy to PR myself.

akazakou commented 2 years ago

Probably you can use dark-mechanicum/aws-codebuild@v1 action to implement what you need.

name: Running example
on: [push]

env:
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  AWS_REGION: ${{ secrets.AWS_REGION }}

jobs:
  deploy:
    name: 'Deployment'
    runs-on: ubuntu-latest
    steps:
      - name: Executing AWS CodeBuild task
        uses: dark-mechanicum/aws-codebuild@v1
        env:
          CODEBUILD__imageOverride: "The name of an image for this build that overrides the one specified in the build project"
        with:
          projectName: '<your-aws-codebuild-job-name-here>'
Daniel-BB commented 2 years ago

@yellowmamba , it seems to be available now. In README.md it is listed under Usage/Inputs and also in the Examples. Just use e.g. image-override: <your-image> in with: block.