From 1396017653c3ca32e2914d4596f6772ed704ee11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Mon, 4 Mar 2024 09:57:54 +0100 Subject: [PATCH] Use collision resistant name for Terraform e2e test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/workflows/e2e-test-provider-example.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index 6f2d92063..1174f07c5 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -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,15 @@ 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%%-*} + echo "uuid=${uuid}" | tee -a $GITHUB_OUTPUT + echo "prefix=e2e-${{ github.run_id }}-${{ github.run_attempt }}-${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