2024-08-12 02:35:25 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [ assigned, opened, synchronize, reopened ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
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:
|
|
|
|
- name: Environment setup
|
|
|
|
run: |
|
2024-08-21 14:21:49 +00:00
|
|
|
doas apk add nodejs git patch curl
|
|
|
|
cd /etc/apk/keys
|
|
|
|
doas curl -JO https://ayakael.net/api/packages/forge/alpine/key
|
2024-08-12 02:35:25 +00:00
|
|
|
- name: Repo pull
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 500
|
|
|
|
- name: Package build
|
2024-09-03 16:14:10 +00:00
|
|
|
run: |
|
|
|
|
${{ github.workspace }}/.forgejo/bin/build.sh
|
|
|
|
touch packages/dummy
|
2024-08-12 02:35:25 +00:00
|
|
|
- name: Package upload
|
|
|
|
uses: forgejo/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: package
|
|
|
|
path: packages
|
|
|
|
|
|
|
|
deploy-x86_64:
|
|
|
|
needs: [build-x86_64]
|
|
|
|
runs-on: x86_64
|
|
|
|
container:
|
|
|
|
image: alpine:latest
|
|
|
|
env:
|
|
|
|
CI_ALPINE_REPO: 'https://ayakael.net/api/packages/forge/alpine'
|
|
|
|
FORGE_REPO_TOKEN: ${{ secrets.FORGE_REPO_TOKEN }}
|
|
|
|
FORGE_REPO_USER: ${{ vars.FORGE_REPO_USER }}
|
|
|
|
steps:
|
|
|
|
- name: Setting up environment
|
|
|
|
run: apk add nodejs curl findutils git gawk
|
|
|
|
- name: Repo pull
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Package download
|
|
|
|
uses: forgejo/download-artifact@v3
|
|
|
|
- name: Package deployment
|
|
|
|
run: ${{ github.workspace }}/.forgejo/bin/deploy.sh
|