From 3eefe697d8f4c07ad4257b338725b8532fc4edc5 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Mon, 5 May 2025 16:33:46 +0200 Subject: [PATCH] feat: add alpine ci --- .forgejo/workflows/build-alpine.yml | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .forgejo/workflows/build-alpine.yml diff --git a/.forgejo/workflows/build-alpine.yml b/.forgejo/workflows/build-alpine.yml new file mode 100644 index 00000000..3b31fff0 --- /dev/null +++ b/.forgejo/workflows/build-alpine.yml @@ -0,0 +1,45 @@ +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 + + sed -i '/^source=/c\source="' APKBUILD + echo 1 + sed -i '/default_prepare/ s:$:cd $srcdir; git clone ${{GITHUB.SERVER_URL}}/${{GITHUB.REPOSITORY}} continuwuity:' APKBUILD + cat APKBUILD + abuild -F checksum + +# vim: shiftwidth=2