continuwuity/.forgejo/workflows/build-alpine.yml
magmaus3 3a33482fd6
All checks were successful
/ build (push) Successful in 45s
feat: add alpine ci
2025-05-06 13:05:27 +02:00

43 lines
1.1 KiB
YAML

on:
- workflow-dispatch
- push
jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine:edge
steps:
- name: set up dependencies
run: |
apk update
apk upgrade
apk add nodejs git alpine-sdk
- uses: actions/checkout@v4
with:
sparse-checkout: "alpine/"
# - uses: https://code.forgejo.org/actions/checkout
- name: set up user
run: adduser -DG abuild ci
- name: set up keys
run: |
pwd
mkdir ~/.abuild
echo "${{ secrets.abuild_privkey }}" > ~/.abuild/ci@continuwuity.rsa
echo "${{ secrets.abuild_pubkey }}" > ~/.abuild/ci@continuwuity.rsa.pub
echo $HOME
echo 'PACKAGER_PRIVKEY="/root/.abuild/ci@continuwuity.rsa"' > ~/.abuild/abuild.conf
ls ~/.abuild
- name: go go gadget abuild
run: |
cd alpine
# TODO (after i wake up): replace this mess with a proper APKBUILD solution
sed -i '/^source=/c\source="' APKBUILD
cat APKBUILD
abuild -F checksum
# vim: shiftwidth=2