Skip to content

Commit

Permalink
test(e2e): add --platform to docker pull
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 c4e214f commit 07d57e5
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,6 @@ jobs:
- name: Build Podman Desktop for E2E tests
working-directory: ./podman-desktop
run: pnpm test:e2e:build

#- name: Ensure getting current HEAD version of the test framework (windows)
# if: matrix.os == 'windows-2022'
# working-directory: ./crc-extension
# run: |
# # workaround for https://github.com/containers/podman-desktop-extension-bootc/issues/712
# $version = npm view @podman-desktop/tests-playwright@next version
# Write-Host "Version of @podman-desktop/tests-playwright to be used: $version"
# (Get-Content package.json) |
# ForEach-Object { $_ -replace '"@podman-desktop/tests-playwright": ".*"', "`"@podman-desktop/tests-playwright`": `"$version`"" } |
# Set-Content package.json
# shell: pwsh

- name: Adjust/Downgrade local podman desktop version Windows
if: matrix.os == 'windows-2022'
Expand Down Expand Up @@ -235,15 +223,9 @@ jobs:
Get-ChildItem -Path "$(pwd)\tests\playwright\output\crc-tests-pd\plugins\crcextension"
# build sso dependency from containerfile:
#docker build -t openshift_local_image . -f ./oci/Containerfile.multistage
#$CONTAINER_ID_CRC = docker create openshift_local_image --entrypoint ""
#docker export $CONTAINER_ID_CRC > C:\temp\openshift_local_extension.tar
#New-Item -ItemType Directory -Path tests\playwright\output\crc-tests-pd\plugins -Force
docker pull 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\openshift_local_extension.tar -C tests\playwright\output\crc-tests-pd\plugins\
#Move-Item tests\playwright\output\crc-tests-pd\plugins\extension\ tests\playwright\output\crc-tests-pd\plugins\crcextension
tar -xf C:\temp\sso_extension.tar -C tests\playwright\output\crc-tests-pd\plugins\
Move-Item tests\playwright\output\crc-tests-pd\plugins\extension\ tests\playwright\output\crc-tests-pd\plugins\ssoextension
Expand Down

0 comments on commit 07d57e5

Please sign in to comment.