1
0
Fork 0

Proper wait for the lock

timestamps
dump_stack() 2023-05-12 07:32:03 +00:00
parent a48cbe4bb2
commit 4e4c62c376
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ jobs:
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 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 install -y git podman
ssh -o StrictHostKeyChecking=accept-new root@$IP git clone https://github.com/out-of-tree/out-of-tree