diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | build.yml | 39 | ||||
-rw-r--r-- | docs/index.html | 4 | ||||
-rwxr-xr-x | submit-builds | 66 |
4 files changed, 4 insertions, 109 deletions
@@ -10,7 +10,7 @@ Who needs docker anyways ;) If for whatever reason you want to add this repo: ```shell -echo "https://artifacts.gabrielgio.me/repo/v3.19/" >> /etc/apk/repositories +echo "https://artifacts.gabrielgio.me/repo/v3.20/" >> /etc/apk/repositories ``` Then trust me: @@ -20,7 +20,7 @@ curl https://artifacts.gabrielgio.me/repo/mail%40gabrielgio.me-62ddc4dc.rsa.pub -o /etc/apk/keys/mail@gabrielgio.me-62ddc4dc.rsa.pub ``` -# Apks Alpine 3.19 +# Apks Alpine 3.20 For docs check https://apkdoc.gabrielgio.me/ diff --git a/build.yml b/build.yml deleted file mode 100644 index 7a3ba59..0000000 --- a/build.yml +++ /dev/null @@ -1,39 +0,0 @@ -image: alpine/3.19 -repositories: - gabrielgio.me: > - https://artifacts.gabrielgio.me/repo/v3.19/ - https://artifacts.gabrielgio.me/repo/mail%40gabrielgio.me-62ddc4dc.rsa.pub - mail@gabrielgio.me-62ddc4dc.rsa.pub -packages: - - openssl - - rsync - - alpine-sdk - - minify - - apkdoc -environment: - remote: builds@gabrielgio.me - remote_path: /var/www/artifacts.gabrielgio.me/repo/ - packages: [] -sources: - - https://git.sr.ht/~gabrielgio/apkbuilds -secrets: - - 008c4f67-b864-47f8-9790-cd32f2ae8516 - - df9d57f4-43bb-4084-a748-dbf02848bdd0 - - d8a9e8ed-cdb0-4e0e-9238-361acbe8611f -tasks: - - setup: | - cd apkbuilds - ./pkgkit add-repo -s apks ~/.abuild/mail@gabrielgio.me-62ddc4dc.rsa - - build: | - cd apkbuilds - ./pkgkit build -cu "${packages[@]}" - - deploy: | - cd apkbuilds - ./pkgkit upload "$remote" "$remote_path" "${packages[@]}" - - doc: | - cd apkbuilds - sshopts="ssh -o StrictHostKeyChecking=no" - apkdoc -u "https://artifacts.gabrielgio.me/repo/v3.19/x86_64/APKINDEX.tar.gz" -f docs/index.html -o index.html - minify -o index.html index.html - rsync --rsh="$sshopts" -rP index.html $remote:/var/www/apkdoc.gabrielgio.me/ - diff --git a/docs/index.html b/docs/index.html index 802aabc..655c1e2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -535,10 +535,10 @@ <h1 class="title">Gabriel's apk repo</h1> </header> <p> To enable this repository:</p> -<code>echo "https://artifacts.gabrielgio.me/repo/v3.19/" >> /etc/apk/repositories +<code>echo "https://artifacts.gabrielgio.me/repo/v3.20/" >> /etc/apk/repositories curl https://artifacts.gabrielgio.me/repo/mail%40gabrielgio.me-62ddc4dc.rsa.pub -o /etc/apk/keys/mail@gabrielgio.me-62ddc4dc.rsa.pub</code> -<h1 id="apks-alpine">Apks Alpine 3.19</h1> +<h1 id="apks-alpine">Apks Alpine 3.20</h1> {{ range $e := . }} <h2 id="{{ $e.Name }}">{{ $e.Name }}</h2> {{ range $name, $value := ($e.Properties) }} diff --git a/submit-builds b/submit-builds deleted file mode 100755 index eada369..0000000 --- a/submit-builds +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh -upstream=https://builds.sr.ht -manifest=build.yml - -if [ -e ~/.config/sr.ht ] -then - . ~/.config/sr.ht -fi - -while getopts m:u:t:h flag -do - case $flag in - u) - upstream="$OPTARG" - ;; - t) - bearer_token="$OPTARG" - ;; - m) - manifest="$OPTARG" - ;; - h) - echo "Usage: $0 [-u https://upstream...] [-t oauth token] <packages...>" - exit 0 - ;; - esac -done -shift $((OPTIND-1)) - -builds="" -note="" -for target in $* -do - if [ "$builds" = "" ] - then - builds="'${target#sr.ht/}'" - note="${target#sr.ht/}" - else - builds="$builds, '${target#sr.ht/}'" - if [ "${#note}" -lt 128 ] - then - note="$note, ${target#sr.ht/}" - fi - fi -done - -vars="$(sed "s/packages: \\[\\]/packages: [$builds]/g" < $manifest | jq -sR '{ - "manifest": ., - "tags": ["apkbuilds"], - "note": "'"$note"'" -}')" -query="$(jq -sR '.' <<"EOF" -mutation SubmitJob($manifest: String!, $tags: [String!]!, $note: String!) { - submit(manifest: $manifest, tags: $tags, note: $note) { - id, tags - } -} -EOF -)" - -curl --oauth2-bearer "$bearer_token" \ - -H Content-Type:application/json \ - -d '{ - "query": '"$query"', - "variables": '"$vars"' - }' "$upstream/query" | jq . |