Skip to content

Commit

Permalink
Specify archicture if running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Jun 10, 2024
1 parent 943e6dc commit e70f69b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workflow_tests/utils/ExtendedAct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// This eslint-disable comment is here to allow accessing private properties in the Act class
import type {RunOpts, Step, Workflow} from '@kie/act-js';
import {Act} from '@kie/act-js';
import os from 'os';
import path from 'path';
import JobMocker from './JobMocker';
import type {MockJobs} from './JobMocker';
Expand All @@ -23,6 +24,10 @@ class ExtendedAct extends Act {
actArguments.push('--actor', opts.actor);
}

if (os.arch() === 'arm64') {
actArguments.push('--container-architecture', 'linux/amd64');
}

return {cwd, actArguments, proxy};
}

Expand Down

0 comments on commit e70f69b

Please sign in to comment.