Skip to content

Commit

Permalink
debian now ships qemu-xxx-static as a symbolink
Browse files Browse the repository at this point in the history
  • Loading branch information
SalimTerryLi committed Dec 30, 2024
1 parent 2f959df commit 8d38f72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
- name: Build
run: |
wget --content-disposition http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu-user-static_${{ env.ORIGIN_VERSION }}_amd64.deb
dpkg-deb -R qemu-user-static_*.deb releases
wget --content-disposition http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu-user_${{ env.ORIGIN_VERSION }}_amd64.deb
dpkg-deb -x qemu-user-static_*.deb releases
dpkg-deb -x qemu-user_*.deb releases
./run.sh -t "${{ env.VERSION }}" -r "${{ env.GITHUB_REPOSITORY }}" -d "${{ env.DOCKER_REPO }}"
- name: Test
run: ./test.sh -d "${{ env.DOCKER_REPO }}"
Expand Down
4 changes: 3 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ do
mkdir -p "${work_dir}"
cp -p "${releases_dir}qemu-${to_arch}-static" ${work_dir}
cp -p "${work_dir}/qemu-${to_arch}-static" "${out_dir}/latest/"
cp -p "${releases_dir}qemu-${to_arch}" ${work_dir}
cp -p "${work_dir}/qemu-${to_arch}" "${out_dir}/latest/"
cat > ${work_dir}/Dockerfile -<<EOF
FROM scratch
COPY qemu-${to_arch}-static /usr/bin/
Expand All @@ -69,4 +71,4 @@ done

docker build -t ${DOCKER_REPO}:${TAG_VER} ${out_dir}/latest
docker tag ${DOCKER_REPO}:${TAG_VER} ${DOCKER_REPO}:latest
docker build -t ${DOCKER_REPO}:register ${out_dir}/register
docker build -t ${DOCKER_REPO}:register ${out_dir}/register

0 comments on commit 8d38f72

Please sign in to comment.