Skip to content

Commit

Permalink
csi-wrapper: add workflow for csi wrapper e2e test
Browse files Browse the repository at this point in the history
This enable workflow to display e2e test result of csi wrapper which bases on self managed cluster in ibmcloud.

Fixes: #1188

Signed-off-by: yuanyuanwang <wyuany@cn.ibm.com>
  • Loading branch information
wyuany authored and Qi Feng Huo committed Jul 18, 2023
1 parent 5997d81 commit f61c377
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/daily-e2e-tests-ibmcloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- type: amd64
- type: s390x-non-secure-execution
- type: s390x-secure-execution
- type: csi_wrapper_x86_64
steps:
- name: Checkout the code
uses: actions/checkout@v3
Expand Down Expand Up @@ -79,22 +80,24 @@ jobs:
echo "The built podvm image is based on CAA commit_id: ${caa_commit_id}"
arch_string=""
podvm_docker_name=""
case "${{matrix.type}}" in
amd64)
arch_string="amd64"
;;
s390x-non-secure-execution)
arch_string="s390x"
;;
s390x-secure-execution)
arch_string="s390x-se"
;;
esac
podvm_image_tar_name="podvm-generic-ubuntu-${arch_string}-${caa_commit_id}.tar"
podvm_docker_name="quay.io/confidential-containers/podvm-generic-ubuntu-${arch_string}:${caa_commit_id}"
ibmcloud cos object-get --bucket daily-e2e-test-bucket --key=$podvm_image_tar_name $podvm_image_tar_name
docker load -i $podvm_image_tar_name
docker push ${podvm_docker_name}
echo "${podvm_docker_name} is pushed"
if [[ "${{matrix.type}}" != "csi_wrapper_x86_64" ]]; then
case "${{matrix.type}}" in
amd64)
arch_string="amd64"
;;
s390x-non-secure-execution)
arch_string="s390x"
;;
s390x-secure-execution)
arch_string="s390x-se"
;;
esac
podvm_image_tar_name="podvm-generic-ubuntu-${arch_string}-${caa_commit_id}.tar"
podvm_docker_name="quay.io/confidential-containers/podvm-generic-ubuntu-${arch_string}:${caa_commit_id}"
ibmcloud cos object-get --bucket daily-e2e-test-bucket --key=$podvm_image_tar_name $podvm_image_tar_name
docker load -i $podvm_image_tar_name
docker push ${podvm_docker_name}
echo "${podvm_docker_name} is pushed"
fi
env:
bucket_name : "daily-e2e-test-bucket"

0 comments on commit f61c377

Please sign in to comment.