Run Operator E2E Tests - azure by @gmsdelmundo #406
Workflow file for this run
This file contains 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}', inputs.operator_type) }} by @${{ github.actor }} | |
on: | |
workflow_dispatch: | |
inputs: | |
operator_type: | |
description: The operator type [public, gcp, azure, aws] | |
required: true | |
type: choice | |
options: | |
- public | |
- gcp | |
- azure | |
- aws | |
identity_scope: | |
description: The identity scope [UID2, EUID] | |
required: true | |
type: choice | |
options: | |
- UID2 | |
- EUID | |
image_version: | |
description: The image versions (for gcp/azure, set appropriate operator image) | |
type: string | |
required: true | |
default: '{ | |
"operator": "latest", | |
"core": "latest", | |
"optout": "latest", | |
"e2e": "latest" | |
}' | |
branch: | |
description: The branches for config | |
type: string | |
required: true | |
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] | |
type: string | |
default: public | |
identity_scope: | |
description: The identity scope [UID2, EUID] | |
type: string | |
default: UID2 | |
image_version: | |
description: The image versions (for gcp/azure, set appropriate operator image) | |
type: string | |
default: '{ | |
"operator": "latest", | |
"core": "latest", | |
"optout": "latest" | |
}' | |
branch: | |
description: The branches for config | |
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@gdm-UID2-2377-aws-euid | |
with: | |
operator_type: ${{ inputs.operator_type }} | |
operator_image_version: ${{ fromJson(inputs.image_version).operator }} | |
core_image_version: ${{ fromJson(inputs.image_version).core }} | |
optout_image_version: ${{ fromJson(inputs.image_version).optout }} | |
e2e_image_version: ${{ fromJson(inputs.image_version).e2e }} | |
operator_branch: ${{ github.ref }} | |
core_branch: ${{ fromJson(inputs.branch).core }} | |
optout_branch: ${{ fromJson(inputs.branch).optout }} | |
admin_branch: ${{ fromJson(inputs.branch).admin }} | |
uid2_e2e_identity_scope: ${{ inputs.identity_scope }} | |
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 |