Skip to content

Commit

Permalink
fixup gh
Browse files Browse the repository at this point in the history
  • Loading branch information
thehajime committed Oct 4, 2024
1 parent a160f0e commit 83edc34
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,18 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: image for test
run: |
container_id=$(docker create kollerr/alpine-test:latest)
#container_id=$(docker create alpine:latest)
#container_id=$(docker create kollerr/alpine-test:latest)
container_id=$(docker create alpine:3.20.3 apk add utmps-libs)
docker start $container_id
docker export $container_id > alpine.tar
docker wait $container_id
docker rm $container_id
mnt=$(mktemp -d)
curl -L -o output.zip \
"https://gitlab.alpinelinux.org/thehajime/aports/-/jobs/1543228/artifacts/download?file_type=archive"
unzip output.zip
tar xfz packages/main/x86_64/busybox-nommu-1.36.1-r32.apk
dd if=/dev/zero of=alpine.ext4 bs=1 count=0 seek=1G
sudo chmod og+wr "alpine.ext4"
yes 2>/dev/null | mkfs.ext4 "alpine.ext4" || true
Expand All @@ -88,8 +95,10 @@ jobs:
sudo mknod -m 444 $mnt/dev/random c 1 8
sudo mknod -m 444 $mnt/dev/urandom c 1 9
sudo cp .github/workflows/busybox $mnt/bin/busybox
sudo cp bin/busybox.nommu $mnt/bin/busybox
#sudo cp .github/workflows/busybox $mnt/bin/busybox
echo "/sbin/halt" >> .github/workflows/rcS
sudo mkdir -p $mnt/etc/init.d/
sudo cp .github/workflows/rcS $mnt/etc/init.d/
sudo cp .github/workflows/inittab $mnt/etc/
cat .github/workflows/bench.sh | sed "s/time //" > /tmp/bench.sh
Expand Down

0 comments on commit 83edc34

Please sign in to comment.