2024-08-11 20:37:29 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [ assigned, opened, synchronize, reopened ]
|
2024-08-11 20:38:29 +00:00
|
|
|
|
2024-08-11 20:00:48 +00:00
|
|
|
jobs:
|
2024-08-11 21:33:12 +00:00
|
|
|
build-x86_64:
|
|
|
|
runs-on: x86_64
|
|
|
|
container:
|
|
|
|
image: alpinelinux/alpine-gitlab-ci:latest
|
|
|
|
env:
|
|
|
|
CI_PROJECT_DIR: ${{ github.workspace }}
|
|
|
|
CI_DEBUG_BUILD: ${{ runner.debug }}
|
|
|
|
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
|
|
|
|
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
|
|
|
|
steps:
|
|
|
|
- run: doas apk add nodejs git patch
|
2024-08-11 21:46:03 +00:00
|
|
|
- run: doas wget -P /etc/apk/keys 'https://ayakael.net/pkgs/apk/raw/branch/edge/antoine.martin@protonmail.com-5b3109ad.rsa.pub'
|
2024-08-11 22:01:27 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-11 21:33:12 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 500
|
|
|
|
- run: doas patch -d / -p1 -i ${{ github.workspace }}/.forgejo/patches/build.patch
|
|
|
|
- run: build.sh
|
2024-08-11 22:01:27 +00:00
|
|
|
- uses: forgejo/upload-artifact@v4
|
2024-08-11 21:52:23 +00:00
|
|
|
with:
|
|
|
|
name: package
|
|
|
|
path: packages
|
|
|
|
|
2024-08-11 23:40:18 +00:00
|
|
|
deploy:
|
|
|
|
runs-on: x86_64
|
|
|
|
container:
|
|
|
|
image: alpine:latest
|
|
|
|
steps:
|
2024-08-12 00:38:25 +00:00
|
|
|
- uses: actions/checkout@4
|
2024-08-12 00:36:40 +00:00
|
|
|
- run: apk add nodejs curl findutils
|
2024-08-11 23:40:18 +00:00
|
|
|
- uses: forgejo/download-artifact@v4
|
2024-08-12 00:32:07 +00:00
|
|
|
- name: Deploy to repo
|
|
|
|
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
|