1
0

Upload images

This commit is contained in:
dump_stack() 2023-05-12 07:47:22 +00:00
parent c965cf3ade
commit a78429729b
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -27,12 +27,14 @@ jobs:
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 pkill apt-get
ssh -o StrictHostKeyChecking=accept-new root@$IP apt-get update ssh root@$IP apt-get update
ssh -o StrictHostKeyChecking=accept-new root@$IP apt-get install -y git podman ssh root@$IP apt-get install -y git podman s3cmd
ssh -o StrictHostKeyChecking=accept-new root@$IP git clone https://github.com/out-of-tree/out-of-tree ssh root@$IP git clone https://github.com/out-of-tree/out-of-tree
ssh -o StrictHostKeyChecking=accept-new root@$IP "cd out-of-tree && git checkout $GITHUB_SHA" ssh root@$IP "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 ssh root@$IP ./out-of-tree/tools/qemu-debian-img/generate-images.sh
ssh root@$IP "s3cmd put ./out-of-tree/tools/qemu-debian-img/*.tar.gz s3://out-of-tree/1.0.0 --host=fra1.digitaloceanspaces.com --access_key=${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }} --secret_key=${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
# - name: delete droplet
# if: always() - name: delete droplet
# run: doctl compute droplet delete -f ga-out-of-tree-$GITHUB_SHA if: always()
run: doctl compute droplet delete -f ga-out-of-tree-$GITHUB_SHA