1
0

Proper wait for the lock

This commit is contained in:
dump_stack() 2023-05-12 07:32:03 +00:00
parent a48cbe4bb2
commit 4e4c62c376
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -26,7 +26,7 @@ jobs:
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 sleep 1m
ssh -o StrictHostKeyChecking=accept-new root@$IP pkill apt-get ssh -o StrictHostKeyChecking=accept-new root@$IP sh -c 'while fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do sleep 1s; done'
ssh -o StrictHostKeyChecking=accept-new root@$IP apt-get update ssh -o StrictHostKeyChecking=accept-new root@$IP apt-get update
ssh -o StrictHostKeyChecking=accept-new root@$IP apt-get install -y git podman ssh -o StrictHostKeyChecking=accept-new root@$IP apt-get 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