From 840635b5708b114ff010bf5fedf55b3fd67a8960 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Wed, 22 May 2024 17:18:53 +0200 Subject: chore: Update to 3.20 --- README.md | 4 ++-- build.yml | 39 ---------------------------------- docs/index.html | 4 ++-- submit-builds | 66 --------------------------------------------------------- 4 files changed, 4 insertions(+), 109 deletions(-) delete mode 100644 build.yml delete mode 100755 submit-builds diff --git a/README.md b/README.md index 891a3d1..22ad472 100644 --- a/README.md +++ b/README.md @@ -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 @@

Gabriel's apk repo

To enable this repository:

-echo "https://artifacts.gabrielgio.me/repo/v3.19/" >> /etc/apk/repositories +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 -

Apks Alpine 3.19

+

Apks Alpine 3.20

{{ range $e := . }}

{{ $e.Name }}

{{ 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] " - 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 . -- cgit v1.2.3