Install curl and add actual repo stuff

This commit is contained in:
askiiart 2023-09-10 19:19:55 -05:00
parent 873b81b2b0
commit 22a6234765
No known key found for this signature in database
GPG key ID: C89CBC4F981EE719
2 changed files with 10 additions and 4 deletions

View file

@ -15,13 +15,13 @@ steps:
commands:
- '/drone/src/debian.sh'
volumes:
- name: debian-repo
- name: debian-bookworm-repo
path: /repo
volumes:
- name: fedora-repo
host:
path: /mnt/user/big-stuff/files/repos/fedora/x86_64
- name: debian-repo
- name: debian-bookworm-repo
host:
path: /mnt/user/big-stuff/files/repos/debian/amd64
path: /mnt/user/big-stuff/files/repos/debian/bookworm/amd64

View file

@ -1,4 +1,7 @@
#!/bin/bash
apt-get update
apt-get install curl
# Update steam - have to do all this stuff because the filename is always the same.
# There's probably a better way to do this.
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
@ -10,3 +13,6 @@ fi
cd /repo
curl -LO $(curl -s https://api.github.com/repos/ArmCord/ArmCord/releases/latest | grep "browser_download_url.*ArmCord_.*_amd64.deb" | cut -d : -f 2,3 | tr -d \") -C -
cd /drone/src
dpkg-scanpackages --arch amd64 /repo > /repo/Packages
cat /repo/Packages | gzip -9 > /repo/Packages.gz