Skip to content

Commit

Permalink
workflows/libvirt: add e2e job to test with CRI-O
Browse files Browse the repository at this point in the history
Added a new container_runtime matrix column to generate
one job for each runtime: containerd and crio.

Fixes confidential-containers#1981
Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
  • Loading branch information
wainersm committed Sep 27, 2024
1 parent 1a91d70 commit ec93510
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/e2e_libvirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
description: Git ref to checkout the cloud-api-adaptor repository. Defaults to main.
required: false
type: string
container_runtime:
default: 'containerd'
description: Either containerd or crio. Defaults to containerd.
required: false
type: string

env:
CLOUD_PROVIDER: libvirt
Expand Down Expand Up @@ -86,6 +91,7 @@ jobs:
run: |
./libvirt/config_libvirt.sh
echo "CAA_IMAGE=\"${{ inputs.caa_image }}\"" >> libvirt.properties
echo "container_runtime=\"${{ inputs.container_runtime }}\"" >> libvirt.properties
# For debugging
cat libvirt.properties
Expand Down Expand Up @@ -117,6 +123,7 @@ jobs:
REGISTRY_CREDENTIAL_ENCODED: ${{ secrets.REGISTRY_CREDENTIAL_ENCODED }}
run: |
export CLOUD_PROVIDER=libvirt
export CONTAINER_RUNTIME="${{ inputs.container_runtime }}"
export DEPLOY_KBS=true
export TEST_PROVISION="yes"
export TEST_TEARDOWN="no"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_run_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ jobs:
strategy:
fail-fast: false
matrix:
container_runtime:
- containerd
- crio
os:
- ubuntu
provider:
Expand All @@ -168,6 +171,7 @@ jobs:
uses: ./.github/workflows/e2e_libvirt.yaml
with:
caa_image: ${{ inputs.registry }}/cloud-api-adaptor:${{ inputs.caa_image_tag }}-dev
container_runtime: ${{ matrix.container_runtime }}
podvm_image: ${{ inputs.registry }}/podvm-${{ matrix.provider }}-${{ matrix.os }}-${{ matrix.arch }}:${{ inputs.podvm_image_tag }}
install_directory_artifact: install_directory
git_ref: ${{ inputs.git_ref }}
Expand Down

0 comments on commit ec93510

Please sign in to comment.