Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support for computeTypeOverride #95

Closed
eogden93 opened this issue May 30, 2022 · 2 comments
Closed

[Feature Request] Support for computeTypeOverride #95

eogden93 opened this issue May 30, 2022 · 2 comments

Comments

@eogden93
Copy link

eogden93 commented May 30, 2022

At current I've not seen a way to set an override for the compute type for this action.
I would like the ability to set this value as it seems to be supported by the API.
https://docs.aws.amazon.com/codebuild/latest/APIReference/API_StartBuild.html#CodeBuild-StartBuild-request-computeTypeOverride

@akazakou
Copy link

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__computeTypeOverride: BUILD_GENERAL1_MEDIUM
        with:
          projectName: '<your-aws-codebuild-job-name-here>'

@Daniel-BB
Copy link

@edogden-pbx, it seems to be available now.
In README.md it is listed under Usage/Inputs and also in the Examples.
Just use e.g. compute-type-override: BUILD_GENERAL1_SMALL in with: block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants