commit d6e3bae44c4339588ce2602498935efc5b415587 Author: Sam Therapy Date: Fri Oct 14 15:49:51 2022 +0200 first test commit Signed-off-by: Sam Therapy diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d3df952 --- /dev/null +++ b/.drone.yml @@ -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: {} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8f830a --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# I hate you, Snyk, but you're so useful +.dccache + +*.deb +db/ +repo/ diff --git a/conf/distributions b/conf/distributions new file mode 100644 index 0000000..582e6fd --- /dev/null +++ b/conf/distributions @@ -0,0 +1,3 @@ +Codename: awl +Components: main +Architectures: i386 amd64 armhf arm64 diff --git a/prepare-pages.sh b/prepare-pages.sh new file mode 100755 index 0000000..4e2ca33 --- /dev/null +++ b/prepare-pages.sh @@ -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/