-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
13 deletions.
There are no files selected for viewing
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
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: | ||
|
@@ -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: "[email protected]" | ||
|
||
- name: Create GCP TF overrides | ||
- name: Create GCP Terraform overrides | ||
if: inputs.cloudProvider == 'gcp' | ||
working-directory: ${{ github.workspace }} | ||
shell: bash | ||
|