feat: add alpine ci
Some checks failed
/ build (push) Failing after 32s

This commit is contained in:
magmaus3 2025-05-05 16:33:46 +02:00
parent 80e8900f04
commit d3ad50ec1c
Signed by: magmaus3
GPG key ID: C8AABFABFA2FAF66

View file

@ -0,0 +1,40 @@
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 doas
- 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: |
doas -su ci
mkdir ~/.abuild
cat << EOF > ~/.abuild/ci@continuwuity.rsa
${{ secrets.abuild_privkey }}
EOF
cat << EOF > ~/.abuild/ci@continuwuity.rsa.pub
${{ secrets.abuild_pubkey }}
EOF
echo $HOME
cat << EOF > ~/.abuild/abuild.conf
PACKAGER_PRIVKEY="/home/ci/.abuild/ci@continuwuity.rsa"
EOF
# vim: shiftwidth=2