mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: use collision resistant name for Terraform e2e test (#2967)
* Use collision resistant name for Terraform e2e test * Remove test suffix from Terraform provider examples --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
06da526fe0
commit
d5b3d4fd6f
18
.github/workflows/e2e-test-provider-example.yml
vendored
18
.github/workflows/e2e-test-provider-example.yml
vendored
@ -83,14 +83,6 @@ jobs:
|
||||
ref: main
|
||||
stream: nightly
|
||||
|
||||
- name: Create resource prefix
|
||||
id: create-prefix
|
||||
shell: bash
|
||||
run: |
|
||||
run_id=${{ github.run_id }}
|
||||
last_three="${run_id: -3}"
|
||||
echo "prefix=e2e-${last_three}" | tee -a "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Determine cloudprovider from attestation variant
|
||||
id: determine
|
||||
shell: bash
|
||||
@ -124,6 +116,16 @@ jobs:
|
||||
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
||||
nixTools: terraform
|
||||
|
||||
- name: Create prefix
|
||||
id: create-prefix
|
||||
shell: bash
|
||||
run: |
|
||||
uuid=$(uuidgen | tr "[:upper:]" "[:lower:]")
|
||||
uuid="${uuid%%-*}"
|
||||
uuid="${uuid: -3}" # Final resource name must be no longer than 10 characters on AWS
|
||||
echo "uuid=${uuid}" | tee -a "${GITHUB_OUTPUT}"
|
||||
echo "prefix=e2e-${uuid}" | tee -a "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Build Constellation provider and CLI # CLI is needed for the upgrade assert and container push is needed for the microservice upgrade
|
||||
working-directory: ${{ github.workspace }}
|
||||
id: build
|
||||
|
@ -44,8 +44,8 @@ module "azure_iam" {
|
||||
// replace $VERSION with the Constellation version you want to use, e.g., v2.14.0
|
||||
source = "https://github.com/edgelesssys/constellation/releases/download/$VERSION/terraform-module.zip//terraform-module/iam/azure"
|
||||
location = local.location
|
||||
service_principal_name = "${local.name}-test-sp"
|
||||
resource_group_name = "${local.name}-test-rg"
|
||||
service_principal_name = "${local.name}-sp"
|
||||
resource_group_name = "${local.name}-rg"
|
||||
}
|
||||
|
||||
module "azure_infrastructure" {
|
||||
|
@ -46,7 +46,7 @@ module "gcp_iam" {
|
||||
// replace $VERSION with the Constellation version you want to use, e.g., v2.14.0
|
||||
source = "https://github.com/edgelesssys/constellation/releases/download/$VERSION/terraform-module.zip//terraform-module/iam/gcp"
|
||||
project_id = local.project_id
|
||||
service_account_id = "${local.name}-test-sa"
|
||||
service_account_id = "${local.name}-sa"
|
||||
zone = local.zone
|
||||
region = local.region
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user