Skip to content

Commit

Permalink
chore(ci): Use different waiting times regarding platform
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Oct 27, 2024
1 parent c662f64 commit 1de4bc8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ jobs:
needs: build
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
platform:
- linux/amd64
- linux/arm64
env:
DOCKER_CLI_EXPERIMENTAL: enabled
PLATFORM: ${{ matrix.platform }}
BOOTUP_WAIT_SECONDS: 90
BOOTUP_WAIT_SECONDS: ${{ matrix.platform == 'linux/amd64' && 30 || 90 }}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -102,10 +104,10 @@ jobs:
sleep 10
- name: Import Docker images
run: docker pull --platform ${{ matrix.platform }} ${IMAGE_NAME}
run: docker pull --platform ${{ env.PLATFORM }} ${IMAGE_NAME}

- name: Docker inspect
run: docker buildx imagetools inspect ${IMAGE_NAME} | grep '${{ matrix.platform }}'
run: docker buildx imagetools inspect ${IMAGE_NAME} | grep '${{ env.PLATFORM }}'

- name: Setup Python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 1de4bc8

Please sign in to comment.