1
0

Switch to podman

This commit is contained in:
dump_stack() 2023-05-12 07:09:56 +00:00
parent fb12fc2f65
commit 8873566dcb
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 4 additions and 2 deletions

View File

@ -25,10 +25,12 @@ jobs:
- name: generate images - name: generate images
run: | run: |
IP=$(doctl compute droplet list --tag-name=github-actions --format "Name,Public IPv4" | grep -v ID | grep ga-out-of-tree-$GITHUB_SHA | awk '{print $2}') IP=$(doctl compute droplet list --tag-name=github-actions --format "Name,Public IPv4" | grep -v ID | grep ga-out-of-tree-$GITHUB_SHA | awk '{print $2}')
sleep 1m
ssh -o StrictHostKeyChecking=accept-new root@$IP apt update ssh -o StrictHostKeyChecking=accept-new root@$IP apt update
ssh -o StrictHostKeyChecking=accept-new root@$IP apt install -y git podman ssh -o StrictHostKeyChecking=accept-new root@$IP apt install -y git podman
ssh -o StrictHostKeyChecking=accept-new root@$IP git clone https://github.com/out-of-tree/out-of-tree ssh -o StrictHostKeyChecking=accept-new root@$IP git clone https://github.com/out-of-tree/out-of-tree
ssh -o StrictHostKeyChecking=accept-new root@$IP sh -c "cd out-of-tree && git checkout $GITHUB_SHA" ssh -o StrictHostKeyChecking=accept-new root@$IP sh -c "cd out-of-tree && git checkout $GITHUB_SHA"
ssh -o StrictHostKeyChecking=accept-new root@$IP ./out-of-tree/tools/qemu-debian-img/generate-images.sh
- name: delete droplet - name: delete droplet
if: always() if: always()

View File

@ -39,10 +39,10 @@ for version in 7 8 9 10 11; do
sed -i "s;_REPOSITORY_;${repository};" $version/Dockerfile sed -i "s;_REPOSITORY_;${repository};" $version/Dockerfile
docker build -t gen-debian${version}-image $version podman build -t gen-debian${version}-image $version
rm -rf $version rm -rf $version
docker run --privileged -v $(pwd):/shared -t gen-debian${version}-image podman run --privileged -v $(pwd):/shared -t gen-debian${version}-image
tar -Szcf out_of_tree_debian_${version}.img.tar.gz out_of_tree_debian_${version}.img tar -Szcf out_of_tree_debian_${version}.img.tar.gz out_of_tree_debian_${version}.img
done done