I need for one job to pass two values for the environment. Jobs should generate dynamically with matrix. Is it possible to pass to the job environment two values first for the command variable and second for the suffix variable?
I am aware that the code below doesn’t work but It should seem like it.
version: 2.1 workflows: version: 2 deploy-adapter: jobs: - deploy-adapter-stage: matrix: parameters: command: [ [ 'suffix1', 'command1' ], [ 'suffix2', 'command2' ], [ 'suffix3', 'command3' ], ] jobs: deploy-adapter-stage: parameters: command: type: enum environment: SERVICE_SUFFIX: <<parameters.command>> SYNC_COMMAND: <<parameters.command>> machine: true steps: - create-task-and-service-definition - deploy-ecs