Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions: Build only current arch in e2e testing #475

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ccruntime_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ jobs:
cd tests/e2e
export PATH="$PATH:/usr/local/bin"
args="-u"
export pre_install_payload_archs="linux/amd64"
if [ $RUNNING_INSTANCE = "s390x-large" ]; then
args=""
export pre_install_payload_archs="linux/s390x"
elif [ "$RUNNING_INSTANCE" == "ubuntu-20.04" ] || [ "$RUNNING_INSTANCE" == "ubuntu-22.04" ]; then
# Remove the pre-installed docker/containerd
sudo apt-get remove docker* containerd* -y
Expand Down
9 changes: 2 additions & 7 deletions install/pre-install-payload/payload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ official_containerd_repo=${official_containerd_repo:-"https://github.com/contain
vfio_gpu_containerd_repo=${vfio_gpu_containerd_repo:-"https://github.com/confidential-containers/containerd"}
nydus_snapshotter_repo=${nydus_snapshotter_repo:-"https://github.com/containerd/nydus-snapshotter"}
extra_docker_manifest_flags="${extra_docker_manifest_flags:-}"
archs=${pre_install_payload_archs:-"linux/amd64 linux/s390x linux/arm64"}

registry="${registry:-quay.io/confidential-containers/reqs-payload}"

supported_arches=(
"linux/amd64"
"linux/s390x"
"linux/arm64"
)

function setup_env_for_arch() {
case "$1" in
"linux/amd64")
Expand Down Expand Up @@ -58,7 +53,7 @@ function build_payload() {
tag=$(git rev-parse HEAD)

manifest_args=()
for arch in "${supported_arches[@]}"; do
for arch in ${archs}; do
setup_env_for_arch "${arch}"

echo "Building containerd payload image for ${arch}"
Expand Down
Loading