Run Operator E2E Tests - azure UID2 integ by @lizk886 #918
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Operator E2E Tests | |
| run-name: ${{ format('Run Operator E2E Tests - {0} {1} {2}', inputs.operator_type, inputs.identity_scope, inputs.target_environment) }} by @${{ github.actor }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| operator_type: | |
| description: The operator type [public, gcp, azure, aws, aks] | |
| required: true | |
| type: choice | |
| options: | |
| - public | |
| - gcp | |
| - azure | |
| - aws | |
| - aks | |
| identity_scope: | |
| description: The identity scope [UID2, EUID] | |
| required: true | |
| type: choice | |
| options: | |
| - UID2 | |
| - EUID | |
| target_environment: | |
| description: PRIVATE OPERATORS ONLY - The target environment [mock, integ, prod] | |
| required: true | |
| type: choice | |
| options: | |
| - mock | |
| - integ | |
| - prod | |
| delay_operator_shutdown: | |
| description: PRIVATE OPERATORS ONLY - If true, will delay operator shutdown by 24 hours. | |
| required: true | |
| type: boolean | |
| default: false | |
| operator_image_version: | |
| description: 'Image: Operator image version (for gcp/azure, set appropriate image)' | |
| type: string | |
| default: latest | |
| core_image_version: | |
| description: 'Image: Core image version' | |
| type: string | |
| default: latest | |
| optout_image_version: | |
| description: 'Image: Optout image version' | |
| type: string | |
| default: latest | |
| e2e_image_version: | |
| description: 'Image: E2E image version' | |
| type: string | |
| default: latest | |
| branch: | |
| description: The arguments for custom branches | |
| type: string | |
| default: '{ | |
| "core": "main", | |
| "optout": "main", | |
| "admin": "main" }' | |
| aws: | |
| description: The arguments for AWS private operator | |
| type: string | |
| default: '{ | |
| "region": "us-east-1", | |
| "ami": "ami-xxxxx", | |
| "pcr0": "xxxxx" }' | |
| workflow_call: | |
| inputs: | |
| operator_type: | |
| description: The operator type [public, gcp, azure, aws, aks] | |
| type: string | |
| default: public | |
| identity_scope: | |
| description: The identity scope [UID2, EUID] | |
| type: string | |
| default: UID2 | |
| target_environment: | |
| description: PRIVATE OPERATORS ONLY - The target environment [mock, integ, prod] | |
| type: string | |
| default: mock | |
| delay_operator_shutdown: | |
| description: PRIVATE OPERATORS ONLY - If true, will delay operator shutdown by 24 hours. | |
| type: boolean | |
| default: false | |
| operator_image_version: | |
| description: 'Image: Operator image version (for gcp/azure, set appropriate image)' | |
| type: string | |
| default: latest | |
| core_image_version: | |
| description: 'Image: Core image version' | |
| type: string | |
| default: latest | |
| optout_image_version: | |
| description: 'Image: Optout image version' | |
| type: string | |
| default: latest | |
| e2e_image_version: | |
| description: 'Image: E2E image version' | |
| type: string | |
| default: latest | |
| branch: | |
| description: The arguments for custom branches | |
| type: string | |
| default: '{ | |
| "core": "main", | |
| "optout": "main", | |
| "admin": "main" }' | |
| aws: | |
| description: The arguments for AWS private operator | |
| type: string | |
| default: '{ | |
| "region": "us-east-1", | |
| "ami": "ami-xxxxx", | |
| "pcr0": "xxxxx" }' | |
| jobs: | |
| e2e-test: | |
| name: E2E Test | |
| uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-run-e2e-tests.yaml@v3 | |
| with: | |
| operator_type: ${{ inputs.operator_type }} | |
| identity_scope: ${{ inputs.identity_scope }} | |
| target_environment: ${{ inputs.target_environment }} | |
| delay_operator_shutdown: ${{ inputs.delay_operator_shutdown }} | |
| operator_image_version: ${{ inputs.operator_image_version }} | |
| core_image_version: ${{ inputs.core_image_version }} | |
| optout_image_version: ${{ inputs.optout_image_version }} | |
| e2e_image_version: ${{ inputs.e2e_image_version }} | |
| operator_branch: ${{ github.ref }} | |
| core_branch: ${{ fromJson(inputs.branch).core }} | |
| optout_branch: ${{ fromJson(inputs.branch).optout }} | |
| admin_branch: ${{ fromJson(inputs.branch).admin }} | |
| gcp_workload_identity_provider_id: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER_ID }} | |
| gcp_service_account: ${{ vars.GCP_SERVICE_ACCOUNT }} | |
| gcp_project: ${{ vars.GCP_PROJECT }} | |
| aws_region: ${{ fromJson(inputs.aws).region }} | |
| aws_ami: ${{ fromJson(inputs.aws).ami }} | |
| aws_pcr0: ${{ fromJson(inputs.aws).pcr0 }} | |
| secrets: inherit |