Upload images
This commit is contained in:
parent
c965cf3ade
commit
a78429729b
18
.github/workflows/images.yml
vendored
18
.github/workflows/images.yml
vendored
@ -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}')
|
||||
sleep 1m
|
||||
ssh -o StrictHostKeyChecking=accept-new root@$IP pkill apt-get
|
||||
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
|
||||
ssh -o StrictHostKeyChecking=accept-new 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 apt-get update
|
||||
ssh root@$IP apt-get install -y git podman s3cmd
|
||||
ssh root@$IP git clone https://github.com/out-of-tree/out-of-tree
|
||||
ssh root@$IP "cd out-of-tree && git checkout $GITHUB_SHA"
|
||||
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()
|
||||
# run: doctl compute droplet delete -f ga-out-of-tree-$GITHUB_SHA
|
||||
|
||||
- name: delete droplet
|
||||
if: always()
|
||||
run: doctl compute droplet delete -f ga-out-of-tree-$GITHUB_SHA
|
||||
|
Loading…
Reference in New Issue
Block a user