Skip to content

Commit

Permalink
fixup! init
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 19, 2023
1 parent 4593beb commit 59573ae
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/e2e-test-provider-example.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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'
Expand All @@ -168,7 +166,7 @@ jobs:
with:
service_account: "[email protected]"

- name: Create GCP TF overrides
- name: Create GCP Terraform overrides
if: inputs.cloudProvider == 'gcp'
working-directory: ${{ github.workspace }}
shell: bash
Expand Down

0 comments on commit 59573ae

Please sign in to comment.