diff --git a/.forgejo/workflows/build-alpine.yml b/.forgejo/workflows/build-alpine.yml new file mode 100644 index 00000000..1088f5d0 --- /dev/null +++ b/.forgejo/workflows/build-alpine.yml @@ -0,0 +1,47 @@ +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: actions/checkout@v4 + with: + path: 'continuwuity/alpine/src/continuwuity' + - 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 + # removes the continuwuity source from the APKBUILD, as we already fetched it + sed -i '/^source=/c\source="' APKBUILD + cat APKBUILD + abuild -F checksum + ls . + ls * -a + +# vim: shiftwidth=2