CircleCI-Public / circleci-config-sdk-ts

Generate CircleCI Configuration YAML from JavaScript or TypeScript. Use Dynamic Configuration and the Config SDK together for live generative config.
https://circleci-public.github.io/circleci-config-sdk-ts/
Apache License 2.0
82 stars 29 forks source link

Bug: Arm support for Docker Executor #189

Open pkrzaczkowski-hippo opened 1 year ago

pkrzaczkowski-hippo commented 1 year ago

Is there an existing issue for this?

Current behavior

Currently, Docker Executor is expecting AnyResourceClassBase type for resourceSize but according to CircleCI documentation docker also support ARM based resource classes https://circleci.com/docs/configuration-reference/#arm

The accepted resource class should be AnyResourceClassBase+MachineResourceClassArm`

Minimum reproduction code

https://github.com

Steps to reproduce

CircleCI.executors.DockerExecutor('cimg/base:latest', 'arm.medium');

Expected behavior

DockerExecutor should allow to pass ARM based resources as resourceSize.

CircleCI Config SDK version

0.12.3

Node.js version

18.15.0

In which operating systems have you tested?

Other

No response