Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 20, 2023
1 parent acf44f5 commit 07fe6ea
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions .github/workflows/e2e-test-provider-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,31 @@ jobs:
with:
ref: ${{ inputs.ref || github.head_ref }}

- name: Update cluster configuration
working-directory: ${{ github.workspace }}
shell: bash
run: |
if [[ "${{ inputs.toImage }}" != "" ]]; then
cat >> _override.tf <<EOF
locals {
version = "${{ inputs.toImage }}"
}
EOF
fi
if [[ "${{ inputs.toProviderVersion }}" != "" ]]; then
cat >> _override.tf <<EOF
terraform {
required_providers {
constellation = {
source = "edgelesssys/constellation"
version = "${{ inputs.toProviderVersion }}"
}
}
}
EOF
fi
# TODO rename version to image_version
- name: Get Latest Image
id: find-latest-image
uses: ./.github/actions/find_latest_image
Expand Down Expand Up @@ -273,7 +298,6 @@ jobs:
- name: Apply Terraform Cluster
id: apply_terraform
if: inputs.cloudProvider != 'azure'
working-directory: ${{ github.workspace }}/cluster
shell: bash
run: |
Expand All @@ -292,23 +316,23 @@ jobs:
shell: bash
run: |
if [[ "${{ inputs.toImage }}" != "" ]]; then
cat >> _override.tf <<EOF
locals {
version = "${{ inputs.toImage }}"
}
EOF
cat >> _override.tf <<EOF
locals {
version = "${{ inputs.toImage }}"
}
EOF
fi
if [[ "${{ inputs.toProviderVersion }}" != "" ]]; then
cat >> _override.tf <<EOF
terraform {
required_providers {
constellation = {
source = "edgelesssys/constellation"
version = "${{ inputs.toProviderVersion }}"
}
cat >> _override.tf <<EOF
terraform {
required_providers {
constellation = {
source = "edgelesssys/constellation"
version = "${{ inputs.toProviderVersion }}"
}
}
EOF
}
EOF
fi
# TODO rename version to image_version
Expand Down

0 comments on commit 07fe6ea

Please sign in to comment.