mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: fix unwanted license checks for some e2e test configs (#3001)
* ci: fix unwanted license checks for some e2e test configs * fixup! ci: fix unwanted
This commit is contained in:
parent
89f311dac1
commit
b97f2b905a
4
.github/actions/e2e_test/action.yml
vendored
4
.github/actions/e2e_test/action.yml
vendored
@ -90,7 +90,7 @@ inputs:
|
|||||||
description: "Set the force-flag on apply to ignore version mismatches."
|
description: "Set the force-flag on apply to ignore version mismatches."
|
||||||
required: false
|
required: false
|
||||||
encryptionSecret:
|
encryptionSecret:
|
||||||
description: 'The secret to use for decrypting the artifact.'
|
description: "The secret to use for decrypting the artifact."
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
@ -169,8 +169,6 @@ runs:
|
|||||||
echo "$(pwd)" >> $GITHUB_PATH
|
echo "$(pwd)" >> $GITHUB_PATH
|
||||||
export PATH="$PATH:$(pwd)"
|
export PATH="$PATH:$(pwd)"
|
||||||
constellation version
|
constellation version
|
||||||
# Do not spam license server from pipeline
|
|
||||||
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts'
|
|
||||||
|
|
||||||
- name: Build Terraform provider binary
|
- name: Build Terraform provider binary
|
||||||
if: inputs.clusterCreation == 'terraform' && inputs.cliVersion == ''
|
if: inputs.clusterCreation == 'terraform' && inputs.cliVersion == ''
|
||||||
|
@ -312,6 +312,7 @@ jobs:
|
|||||||
working-directory: ${{ github.workspace }}/cluster
|
working-directory: ${{ github.workspace }}/cluster
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts'
|
||||||
terraform init
|
terraform init
|
||||||
if [[ "${{ inputs.attestationVariant }}" == "azure-sev-snp" ]]; then
|
if [[ "${{ inputs.attestationVariant }}" == "azure-sev-snp" ]]; then
|
||||||
terraform apply -target module.azure_iam -auto-approve
|
terraform apply -target module.azure_iam -auto-approve
|
||||||
@ -392,7 +393,7 @@ jobs:
|
|||||||
IMAGE: ${{ inputs.toImage && inputs.toImage || steps.find-latest-image.outputs.image }}
|
IMAGE: ${{ inputs.toImage && inputs.toImage || steps.find-latest-image.outputs.image }}
|
||||||
KUBERNETES: ${{ inputs.toKubernetes }}
|
KUBERNETES: ${{ inputs.toKubernetes }}
|
||||||
MICROSERVICES: ${{ steps.build.outputs.build_version }}
|
MICROSERVICES: ${{ steps.build.outputs.build_version }}
|
||||||
WORKERNODES: 1
|
WORKERNODES: 1
|
||||||
CONTROLNODES: 1
|
CONTROLNODES: 1
|
||||||
run: |
|
run: |
|
||||||
terraform output -raw kubeconfig > constellation-admin.conf
|
terraform output -raw kubeconfig > constellation-admin.conf
|
||||||
@ -446,7 +447,7 @@ jobs:
|
|||||||
KUBECONFIG=${{ github.workspace }}/cluster/constellation-admin.conf bazel run //e2e/provider-upgrade:provider-upgrade_test -- --want-worker "$WORKERNODES" --want-control "$CONTROLNODES" --cli "${{ github.workspace }}/build/constellation" "$IMAGE_FLAG" "$KUBERNETES_FLAG" "$MICROSERVICES_FLAG"
|
KUBECONFIG=${{ github.workspace }}/cluster/constellation-admin.conf bazel run //e2e/provider-upgrade:provider-upgrade_test -- --want-worker "$WORKERNODES" --want-control "$CONTROLNODES" --cli "${{ github.workspace }}/build/constellation" "$IMAGE_FLAG" "$KUBERNETES_FLAG" "$MICROSERVICES_FLAG"
|
||||||
|
|
||||||
- name: Destroy Terraform Cluster
|
- name: Destroy Terraform Cluster
|
||||||
# outcome is part of the steps context (https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context)
|
# outcome is part of the steps context (https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context)
|
||||||
if: always() && steps.apply_terraform.outcome != 'skipped'
|
if: always() && steps.apply_terraform.outcome != 'skipped'
|
||||||
working-directory: ${{ github.workspace }}/cluster
|
working-directory: ${{ github.workspace }}/cluster
|
||||||
shell: bash
|
shell: bash
|
||||||
|
3
.github/workflows/e2e-upgrade.yml
vendored
3
.github/workflows/e2e-upgrade.yml
vendored
@ -395,7 +395,7 @@ jobs:
|
|||||||
IMAGE: ${{ inputs.toImage && inputs.toImage || steps.find-image.outputs.output }}
|
IMAGE: ${{ inputs.toImage && inputs.toImage || steps.find-image.outputs.output }}
|
||||||
KUBERNETES: ${{ inputs.toKubernetes }}
|
KUBERNETES: ${{ inputs.toKubernetes }}
|
||||||
MICROSERVICES: ${{ inputs.toMicroservices }}
|
MICROSERVICES: ${{ inputs.toMicroservices }}
|
||||||
WORKERNODES: ${{ needs.generate-input-parameters.outputs.workerNodes }}
|
WORKERNODES: ${{ needs.generate-input-parameters.outputs.workerNodes }}
|
||||||
CONTROLNODES: ${{ needs.generate-input-parameters.outputs.controlPlaneNodes }}
|
CONTROLNODES: ${{ needs.generate-input-parameters.outputs.controlPlaneNodes }}
|
||||||
run: |
|
run: |
|
||||||
echo "Image target: $IMAGE"
|
echo "Image target: $IMAGE"
|
||||||
@ -409,6 +409,7 @@ jobs:
|
|||||||
KUBERNETES_FLAG="--target-kubernetes=$KUBERNETES"
|
KUBERNETES_FLAG="--target-kubernetes=$KUBERNETES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo sh -c 'echo "127.0.0.1 license.confidential.cloud" >> /etc/hosts'
|
||||||
bazel run //e2e/internal/upgrade:upgrade_test -- --want-worker "$WORKERNODES" --want-control "$CONTROLNODES" --target-image "$IMAGE" "$KUBERNETES_FLAG" "$MICROSERVICES_FLAG"
|
bazel run //e2e/internal/upgrade:upgrade_test -- --want-worker "$WORKERNODES" --want-control "$CONTROLNODES" --target-image "$IMAGE" "$KUBERNETES_FLAG" "$MICROSERVICES_FLAG"
|
||||||
|
|
||||||
- name: Remove Terraform plugin cache
|
- name: Remove Terraform plugin cache
|
||||||
|
Loading…
Reference in New Issue
Block a user