first test commit
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is failing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-10-14 15:49:51 +02:00
commit d6e3bae44c
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
4 changed files with 60 additions and 0 deletions

31
.drone.yml Normal file
View 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
View file

@ -0,0 +1,6 @@
# I hate you, Snyk, but you're so useful
.dccache
*.deb
db/
repo/

3
conf/distributions Normal file
View file

@ -0,0 +1,3 @@
Codename: awl
Components: main
Architectures: i386 amd64 armhf arm64

20
prepare-pages.sh Executable file
View 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/