Switch to podman
This commit is contained in:
parent
fb12fc2f65
commit
8873566dcb
2
.github/workflows/images.yml
vendored
2
.github/workflows/images.yml
vendored
@ -25,10 +25,12 @@ jobs:
|
||||
- name: generate images
|
||||
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}')
|
||||
sleep 1m
|
||||
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 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 ./out-of-tree/tools/qemu-debian-img/generate-images.sh
|
||||
|
||||
- name: delete droplet
|
||||
if: always()
|
||||
|
@ -39,10 +39,10 @@ for version in 7 8 9 10 11; do
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user