Skip to content

Commit

Permalink
use same image diff platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Aug 16, 2024
1 parent 9014b59 commit ef30d14
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ jobs:
- name: build apisix-runtime deb
run: |
if [ "${{ matrix.platform }}" == "linux/arm64" ]; then
make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=arm64v8/ubuntu image_tag=20.04 arch=${{ matrix.platform }}
make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=arm64v8/ubuntu image_tag=20.04 arch=linux/arm64/v8
else
make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=ubuntu image_tag=20.04 arch=${{ matrix.platform }}
make package type=deb app=apisix-runtime runtime_version=${BUILD_APISIX_RUNTIME_VERSION} image_base=ubuntu image_tag=20.04 arch=linux/amd64
fi
- name: run ubuntu 20.04 docker and mapping apisix-runtime deb into container
run: |
if [ "${{ matrix.platform }}" == "linux/arm64" ]; then
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" docker.io/arm64v8/ubuntu:20.04 /bin/bash
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" --platfrom linux/arm64/v8 docker.io/ubuntu:20.04 /bin/bash
else
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" docker.io/ubuntu:20.04 /bin/bash
docker run -itd -v /home/runner/work/apisix-build-tools/apisix-build-tools/output:/output --name ubuntu20.04Instance --net="host" --platfrom linux/amd64 docker.io/ubuntu:20.04 /bin/bash
fi
- name: install dependencies in container
Expand Down

0 comments on commit ef30d14

Please sign in to comment.