Merge pull request #9869 from fidencio/topic/disable-tdx-ci

ci: tdx: Disable TDX CI
This commit is contained in:
Wainer Moschetta 2024-06-18 14:47:38 -03:00 committed by GitHub
commit cf372f41bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,78 +23,78 @@ on:
default: "" default: ""
jobs: jobs:
run-k8s-tests-on-tdx: # run-k8s-tests-on-tdx:
strategy: # strategy:
fail-fast: false # fail-fast: false
matrix: # matrix:
vmm: # vmm:
- qemu-tdx # - qemu-tdx
snapshotter: # snapshotter:
- nydus # - nydus
pull-type: # pull-type:
- guest-pull # - guest-pull
runs-on: tdx # runs-on: tdx
env: # env:
DOCKER_REGISTRY: ${{ inputs.registry }} # DOCKER_REGISTRY: ${{ inputs.registry }}
DOCKER_REPO: ${{ inputs.repo }} # DOCKER_REPO: ${{ inputs.repo }}
DOCKER_TAG: ${{ inputs.tag }} # DOCKER_TAG: ${{ inputs.tag }}
PR_NUMBER: ${{ inputs.pr-number }} # PR_NUMBER: ${{ inputs.pr-number }}
KATA_HYPERVISOR: ${{ matrix.vmm }} # KATA_HYPERVISOR: ${{ matrix.vmm }}
KUBERNETES: "k3s" # KUBERNETES: "k3s"
USING_NFD: "true" # USING_NFD: "true"
KBS: "true" # KBS: "true"
K8S_TEST_HOST_TYPE: "baremetal" # K8S_TEST_HOST_TYPE: "baremetal"
KBS_INGRESS: "nodeport" # KBS_INGRESS: "nodeport"
SNAPSHOTTER: ${{ matrix.snapshotter }} # SNAPSHOTTER: ${{ matrix.snapshotter }}
PULL_TYPE: ${{ matrix.pull-type }} # PULL_TYPE: ${{ matrix.pull-type }}
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
with: # with:
ref: ${{ inputs.commit-hash }} # ref: ${{ inputs.commit-hash }}
fetch-depth: 0 # fetch-depth: 0
#
- name: Rebase atop of the latest target branch # - name: Rebase atop of the latest target branch
run: | # run: |
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch" # ./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
env: # env:
TARGET_BRANCH: ${{ inputs.target-branch }} # TARGET_BRANCH: ${{ inputs.target-branch }}
#
- name: Deploy Snapshotter # - name: Deploy Snapshotter
timeout-minutes: 5 # timeout-minutes: 5
run: bash tests/integration/kubernetes/gha-run.sh deploy-snapshotter # run: bash tests/integration/kubernetes/gha-run.sh deploy-snapshotter
#
- name: Deploy Kata # - name: Deploy Kata
timeout-minutes: 10 # timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-tdx # run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-tdx
#
- name: Uninstall previous `kbs-client` # - name: Uninstall previous `kbs-client`
timeout-minutes: 10 # timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh uninstall-kbs-client # run: bash tests/integration/kubernetes/gha-run.sh uninstall-kbs-client
#
- name: Deploy CoCo KBS # - name: Deploy CoCo KBS
timeout-minutes: 10 # timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs # run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs
#
- name: Install `kbs-client` # - name: Install `kbs-client`
timeout-minutes: 10 # timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh install-kbs-client # run: bash tests/integration/kubernetes/gha-run.sh install-kbs-client
#
- name: Run tests # - name: Run tests
timeout-minutes: 30 # timeout-minutes: 30
run: bash tests/integration/kubernetes/gha-run.sh run-tests # run: bash tests/integration/kubernetes/gha-run.sh run-tests
#
- name: Delete kata-deploy # - name: Delete kata-deploy
if: always() # if: always()
run: bash tests/integration/kubernetes/gha-run.sh cleanup-tdx # run: bash tests/integration/kubernetes/gha-run.sh cleanup-tdx
#
- name: Delete Snapshotter # - name: Delete Snapshotter
if: always() # if: always()
run: bash tests/integration/kubernetes/gha-run.sh cleanup-snapshotter # run: bash tests/integration/kubernetes/gha-run.sh cleanup-snapshotter
#
- name: Delete CoCo KBS # - name: Delete CoCo KBS
if: always() # if: always()
run: bash tests/integration/kubernetes/gha-run.sh delete-coco-kbs # run: bash tests/integration/kubernetes/gha-run.sh delete-coco-kbs
#
run-k8s-tests-on-sev: run-k8s-tests-on-sev:
strategy: strategy:
fail-fast: false fail-fast: false