Add Debian repo
This commit is contained in:
parent
6451ef88ad
commit
084c211071
3 changed files with 27 additions and 5 deletions
20
.drone.yml
20
.drone.yml
|
@ -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
12
debian.sh
Normal 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
|
Loading…
Reference in a new issue