From 2d3bd2d85293c2b43c10e43f84da18514eab7395 Mon Sep 17 00:00:00 2001 From: Daniel Villanueva Date: Tue, 15 Oct 2024 15:04:52 +0200 Subject: [PATCH] Update pr-check.yaml Adapted 'Build OpenShift Local extension from container file' from bootc to crc-extension --- .github/workflows/pr-check.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index f7e9c88a..3148208e 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -174,13 +174,19 @@ jobs: - name: Build OpenShift Local extension from container file working-directory: ./crc-extension run: | - pnpm build - podman build -t local_openshift_local_image ./ - CONTAINER_ID=$(podman create localhost/local_openshift_local_image --entrypoint "") - podman export $CONTAINER_ID > /tmp/local_openshift_local_extension.tar - mkdir -p tests/playwright/tests/output/openshift_local-tests-pd/plugins - tar -xf /tmp/local_openshift_local_extension.tar -C tests/playwright/tests/output/openshift_local-tests-pd/plugins/ - + podman build -t openshift_local_image ./oci/Containerfile.multistage + CONTAINER_ID_CRC=$(podman create localhost/openshift_local_image --entrypoint "") + podman export $CONTAINER_ID_CRC > /tmp/openshift_local_extension.tar + mkdir -p tests/output/crc-tests-pd/plugins + podman pull ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest + CONTAINER_ID_SSO=$(podman create ghcr.io/redhat-developer/podman-desktop-redhat-account-ext --entrypoint "") + podman export $CONTAINER_ID_SSO > /tmp/sso_extension.tar + tar -xf /tmp/openshift_local_extension.tar -C tests/playwright/output/crc-tests-pd/plugins/ + mv tests/playwright/output/crc-tests-pd/plugins/extension/ tests/playwright/output/crc-tests-pd/plugins/crcextension + tar -xf /tmp/sso_extension.tar -C tests/playwright/output/crc-tests-pd/plugins/ + mv tests/playwright/output/crc-tests-pd/plugins/crc-extension/ tests/playwright/output/crc-tests-pd/plugins/ssoextension + export SKIP_INSTALLATION=true + - name: Run All E2E tests working-directory: ./crc-extension env: