first test commit
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
commit
d6e3bae44c
4 changed files with 60 additions and 0 deletions
31
.drone.yml
Normal file
31
.drone.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: Get apt packages
|
||||
image: "ubuntu:latest"
|
||||
commands:
|
||||
- apt update
|
||||
- apt install -y wget reprepro
|
||||
- bash ./prepare-pages.sh
|
||||
- mv repo/ /pkg
|
||||
volumes:
|
||||
- name: pkg
|
||||
path: /pkg
|
||||
- name: Push to Pages
|
||||
image: plugins/gh-pages
|
||||
settings:
|
||||
netrc_machine: git.froth.zone
|
||||
target_branch: pages
|
||||
pages_directory: /pkg
|
||||
username: sam
|
||||
password:
|
||||
from_secret: GITEA_PASSWORD
|
||||
volumes:
|
||||
- name: pkg
|
||||
path: /pkg
|
||||
|
||||
volumes:
|
||||
- name: pkg
|
||||
temp: {}
|
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
# I hate you, Snyk, but you're so useful
|
||||
.dccache
|
||||
|
||||
*.deb
|
||||
db/
|
||||
repo/
|
3
conf/distributions
Normal file
3
conf/distributions
Normal file
|
@ -0,0 +1,3 @@
|
|||
Codename: awl
|
||||
Components: main
|
||||
Architectures: i386 amd64 armhf arm64
|
20
prepare-pages.sh
Executable file
20
prepare-pages.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [ -z "$TAG" ]; then
|
||||
echo "\$TAG not set, exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
arches=("amd64" "386" "armv6" "arm64")
|
||||
|
||||
notag=$(sed 's/v//' <<<"$TAG")
|
||||
|
||||
for arch in "${arches[@]}"; do
|
||||
# wget "http://localhost:8080/awl_${notag}_linux_${arch}.deb"
|
||||
wget "https://git.froth.zone/sam/awl/releases/$TAG/download/awl_${notag}_linux_${arch}.deb"
|
||||
done
|
||||
|
||||
reprepro includedeb awl ./*.deb
|
||||
|
||||
mv dists/ pool/ repo/
|
Reference in a new issue