Skip to content

Commit

Permalink
test(e2e): add buildx to use linux images on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Villanueva <[email protected]>
  • Loading branch information
danivilla9 committed Dec 11, 2024
1 parent 07d57e5 commit 76ff106
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
run: |
# allow unprivileged user namespace
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Build OpenShift Local extension from container file (Ubuntu, podman)
if: matrix.os == 'ubuntu-24.04'
working-directory: ./crc-extension
Expand All @@ -209,6 +209,13 @@ jobs:
tar -xf /tmp/sso_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/ssoextension
- name: Set up Docker Buildx
if: matrix.os == 'windows-2022'
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug

- name: Build OpenShift Local extension locally (Windows, docker) #from container file is not available yet
if: matrix.os == 'windows-2022'
working-directory: ./crc-extension
Expand All @@ -222,8 +229,14 @@ jobs:
# does this output match the one from the containerfile built version?
Get-ChildItem -Path "$(pwd)\tests\playwright\output\crc-tests-pd\plugins\crcextension"
docker buildx create --use
docker buildx build --pull --platform linux/amd64 \
--output type=docker \
--tag ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest \
.
# build sso dependency from containerfile:
docker pull --platform linux/amd64 ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest
#docker pull --platform linux/amd64 ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest
$CONTAINER_ID_SSO = docker create ghcr.io/redhat-developer/podman-desktop-redhat-account-ext --entrypoint ""
docker export $CONTAINER_ID_SSO > C:\temp\sso_extension.tar
tar -xf C:\temp\sso_extension.tar -C tests\playwright\output\crc-tests-pd\plugins\
Expand Down

0 comments on commit 76ff106

Please sign in to comment.