continuwuity/.forgejo/workflows/build-alpine.yml
magmaus3 928538c68d
Some checks failed
/ build (push) Failing after 37s
feat: add alpine ci
2025-05-06 14:14:54 +02:00

48 lines
1.3 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
name: checkout the alpine dir
with:
sparse-checkout: "alpine/"
- uses: actions/checkout@v4
name: checkout the rest in the alpine dir
with:
path: 'alpine/'
- 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="continuwuity' APKBUILD
cat APKBUILD
abuild -F checksum
ls src/ -al
abuild -Fr
# vim: shiftwidth=2