This commit is contained in:
parent
80e8900f04
commit
8715e3bad3
1 changed files with 49 additions and 0 deletions
49
.forgejo/workflows/build-alpine.yml
Normal file
49
.forgejo/workflows/build-alpine.yml
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
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/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
|
||||||
|
export ARCHIVE_URL="${{ github.server_url }}/${{ github.repository }}/archive/${{ github.ref_name }}.tar.gz"
|
||||||
|
|
||||||
|
sed -i '/^source=/c\source="'"$ARCHIVE_URL" APKBUILD
|
||||||
|
cat APKBUILD
|
||||||
|
abuild -F checksum
|
||||||
|
ls src/ -al
|
||||||
|
abuild -Fr
|
||||||
|
# vim: shiftwidth=2
|
Loading…
Add table
Add a link
Reference in a new issue