diff --git a/.github/workflows/e2e-test-provider-example.yml b/.github/workflows/e2e-test-provider-example.yml index 5766a0e98f..72ad1790c9 100644 --- a/.github/workflows/e2e-test-provider-example.yml +++ b/.github/workflows/e2e-test-provider-example.yml @@ -1,9 +1,7 @@ name: e2e test Terraform provider example on: - push: - branches: - - feat/ci/test-provider-example + - feat/ci/test-provider-example # TODO remove workflow_dispatch: inputs: ref: @@ -23,8 +21,8 @@ on: image: description: "OS Image version used in the cluster's VMs, as specified in the Constellation config. If not set, the latest nightly image from main is used." type: string - cliVersion: - description: "Constellation CLI version to use. Empty value means build from source." + providerVersion: + description: "Constellation Terraform provider version to use. Empty value means build from source." type: string workflow_call: inputs: @@ -41,12 +39,12 @@ on: image: description: "OS Image version used in the cluster's VMs, as specified in the Constellation config. If not set, the latest nightly image from main is used." type: string - cliVersion: - description: "Constellation CLI version to use. Empty value means build from source." + providerVersion: + description: "Constellation Terraform provider version to use. Empty value means build from source." type: string jobs: - tf-module-test: + provider-example-test: runs-on: ubuntu-22.04 permissions: id-token: write @@ -71,7 +69,7 @@ jobs: - name: Upload Terraform module uses: ./.github/actions/upload_terraform_module with: - version: ${{ inputs.cliVersion }} + version: ${{ inputs.providerVersion }} - name: Download Terraform module uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 @@ -110,7 +108,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Setup bazel - if: inputs.cliVersion == '' + if: inputs.providerVersion == '' uses: ./.github/actions/setup_bazel_nix with: useCache: "true" @@ -139,10 +137,10 @@ jobs: echo "BUILD_VERSION=${build_version}" #- name: Download Provider - # if: inputs.cliVersion != '' + # if: inputs.providerVersion != '' # shell: bash # run: | - # curl -fsSL -o constellation https://github.com/edgelesssys/constellation/releases/download/${{ inputs.cliVersion }}/constellation-linux-amd64 + # curl -fsSL -o constellation https://github.com/edgelesssys/constellation/releases/download/${{ inputs.providerVersion }}/constellation-linux-amd64 # chmod u+x constellation # ./constellation version # sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts' @@ -168,7 +166,7 @@ jobs: with: service_account: "terraform-e2e@constellation-e2e.iam.gserviceaccount.com" - - name: Create GCP TF overrides + - name: Create GCP Terraform overrides if: inputs.cloudProvider == 'gcp' working-directory: ${{ github.workspace }} shell: bash