This commit is contained in:
parent
80e8900f04
commit
af76617e71
1 changed files with 40 additions and 0 deletions
40
.forgejo/workflows/build-alpine.yml
Normal file
40
.forgejo/workflows/build-alpine.yml
Normal 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
|
||||
- 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: |
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue