~bitfehler/apk-index-update

9a40e949453523ca123b5e5db166f6ee6dc17231 — Conrad Hoffmann 2 months ago 7c6faf9
Add build file for creating new Alpine repos
1 files changed, 27 insertions(+), 0 deletions(-)

A new-alpine-version.yml
A new-alpine-version.yml => new-alpine-version.yml +27 -0
@@ 0,0 1,27 @@
# SPDX-FileCopyrightText: Conrad Hoffmann <ch@bitfehler.net>
# SPDX-License-Identifier: CC0-1.0
image: alpine/3.19
sources:
  - https://git.sr.ht/~bitfehler/apk-index-update
packages:
  - hare
  - m4
  - moreutils
  - rsync
secrets:
  - 4cff1295-8128-4876-8d1c-0ca5fe0de8e3 # ssh deploy key
  - e41ebfe5-2639-4b68-a702-d0c4d0b0473e # package signing key
tasks:
  - build: |
      cd apk-index-update
      hare build
  - pkg: |
      export PACKAGER_PRIVKEY="$HOME/.abuild/conrad-6297636d.rsa"
      openssl rsa -in "$HOME/.abuild/conrad-6297636d.rsa" -pubout -out "$HOME/.abuild/conrad-6297636d.rsa.pub"
      cd apk-index-update/contrib/apk/apk-index-update
      m4 -DPKGVER=0.0.$(git rev-list --count master)_git$(date +"%Y%m%d") -DCOMMIT_HASH=$(git rev-parse master) < APKBUILD.m4 > APKBUILD
      abuild checksum
      abuild -r -P "$HOME/packages/v3.19"
      cd "$HOME/packages"
      echo "StrictHostKeyChecking=no" >> ~/.ssh/config
      rsync -arv -e 'ssh -p 23022' v3.19 apk@apk.bitfehler.net: