Install curl and add actual repo stuff
This commit is contained in:
parent
873b81b2b0
commit
22a6234765
2 changed files with 10 additions and 4 deletions
|
@ -15,13 +15,13 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- '/drone/src/debian.sh'
|
- '/drone/src/debian.sh'
|
||||||
volumes:
|
volumes:
|
||||||
- name: debian-repo
|
- name: debian-bookworm-repo
|
||||||
path: /repo
|
path: /repo
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: fedora-repo
|
- name: fedora-repo
|
||||||
host:
|
host:
|
||||||
path: /mnt/user/big-stuff/files/repos/fedora/x86_64
|
path: /mnt/user/big-stuff/files/repos/fedora/x86_64
|
||||||
- name: debian-repo
|
- name: debian-bookworm-repo
|
||||||
host:
|
host:
|
||||||
path: /mnt/user/big-stuff/files/repos/debian/amd64
|
path: /mnt/user/big-stuff/files/repos/debian/bookworm/amd64
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
apt-get update
|
||||||
|
apt-get install curl
|
||||||
|
|
||||||
# Update steam - have to do all this stuff because the filename is always the same.
|
# Update steam - have to do all this stuff because the filename is always the same.
|
||||||
# There's probably a better way to do this.
|
# There's probably a better way to do this.
|
||||||
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
|
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
|
||||||
|
@ -10,3 +13,6 @@ fi
|
||||||
cd /repo
|
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 -
|
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
|
cd /drone/src
|
||||||
|
|
||||||
|
dpkg-scanpackages --arch amd64 /repo > /repo/Packages
|
||||||
|
cat /repo/Packages | gzip -9 > /repo/Packages.gz
|
Loading…
Reference in a new issue