Add Debian repo

This commit is contained in:
askiiart 2023-09-10 18:16:36 -05:00
parent 6451ef88ad
commit 084c211071
No known key found for this signature in database
GPG key ID: C89CBC4F981EE719
3 changed files with 27 additions and 5 deletions

View file

@ -3,15 +3,25 @@ type: docker
name: default name: default
steps: steps:
- name: Run run.sh - name: Update fedora repo
image: debian:stable-slim image: debian:stable-slim
commands: commands:
- '/drone/src/run.sh' - '/drone/src/fedora.sh'
volumes: volumes:
- name: repo - name: fedora-repo
path: /repo
- name: Update debian repo
image: debian:stable-slim
commands:
- '/drone/src/debian.sh'
volumes:
- name: debian-repo
path: /repo path: /repo
volumes: volumes:
- name: 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
host:
path: /mnt/user/big-stuff/files/repos/debian/amd64

12
debian.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# 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
if ! cmp --silent "./steam.deb" "/repo/steam.deb"; then
curl -L https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb -o /repo/steam.deb
fi
# Update ArmCord
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

View file