From b83c6c0e75fa12d195f2c5e67cd3ab0118311600 Mon Sep 17 00:00:00 2001
From: magmaus3 <magmaus3@disroot.org>
Date: Mon, 5 May 2025 16:33:46 +0200
Subject: [PATCH] feat: add alpine ci

---
 .forgejo/workflows/build-alpine.yml | 44 +++++++++++++++++++++++++++++
 1 file changed, 44 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..08913650
--- /dev/null
+++ b/.forgejo/workflows/build-alpine.yml
@@ -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
+        shell: su ci
+        run: |
+          pwd
+          cd ~
+          pwd
+          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
+          ls /home/ci/.abuild
+
+# vim: shiftwidth=2