feat: add alpine ci
All checks were successful
/ build (push) Successful in 33s

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

View file

@ -0,0 +1,44 @@
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
cat << EOF > ~/.abuild/ci@continuwuity.rsa
secret key™
EOF
cat << EOF > ~/.abuild/ci@continuwuity.rsa.pub
${{ secrets.abuild_pubkey }}
EOF
echo $HOME
cat << EOF > ~/.abuild/abuild.conf
PACKAGER_PRIVKEY="/root/.abuild/ci@continuwuity.rsa"
EOF
ls ~/.abuild
- name: make sure the keys are actually there
run: ls ~/.abuild -a; pwd; cd ~; pwd; cat ~/.abuild/ci@continuwuity.rsa
# vim: shiftwidth=2