ISO-repository/.gitea/workflows/builder.yaml

50 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2024-06-25 12:00:48 +00:00
name: Build ISO images
on:
workflow_dispatch:
release:
types: [released]
2024-06-25 12:37:33 +00:00
issue_comment:
2022-05-23 08:30:27 +00:00
2024-06-25 12:00:48 +00:00
jobs:
build-x86:
container:
2024-06-25 12:54:45 +00:00
image: node:22.3-bookworm
2024-06-25 12:37:33 +00:00
# For manual trigger via Gitea while they implement the workflow_dispatch
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run x86' || github.event.comment.body == '!actions run all' }}
2024-06-25 12:00:48 +00:00
steps:
2024-06-25 12:43:59 +00:00
- name: Checkout repository
2024-06-25 12:47:28 +00:00
uses: actions/checkout@v4
2024-06-25 12:21:24 +00:00
- name: Create ISO
run: |
apt update
apt install -y xorriso curl genisoimage cpio
2024-06-25 13:52:53 +00:00
./build/amd64.sh
2024-08-04 19:20:30 +00:00
- name: Upload ISO image to generic package registry
run: |
2024-08-04 21:18:25 +00:00
curl --header 'Authorization: token ${{ secrets.REGISTRY_TOKEN }}' \
--upload-file halis-12.5.0-amd64.iso \
https://git.halis.io/api/packages/athens-school/generic/halis-iso/0.0.1/halis-amd64.iso
2024-06-25 12:00:48 +00:00
build-arm64:
2024-06-25 12:21:24 +00:00
container:
2024-06-25 12:54:45 +00:00
image: node:22.3-bookworm
2024-06-25 12:21:24 +00:00
runs-on: [arm64]
2024-06-25 12:37:33 +00:00
# For manual trigger via Gitea while they implement the workflow_dispatch
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run arm' || github.event.comment.body == '!actions run all' }}
2024-06-25 12:21:24 +00:00
steps:
2024-06-25 12:43:59 +00:00
- name: Checkout repository
uses: https://github.com/actions/checkout@v4
2024-06-25 12:21:24 +00:00
- name: Create ISO
run: |
apt update
apt install -y curl xz-utils file sudo
2024-06-25 13:52:53 +00:00
./build/arm64.sh
2024-08-04 21:18:25 +00:00
- name: Upload ISO image to generic package registry
run: |
curl --header 'Authorization: token ${{ secrets.REGISTRY_TOKEN }}' \
--upload-file halis-11.6.0-arm64.img.xz \
https://git.halis.io/api/packages/athens-school/generic/halis-iso/0.0.1/halis-arm64.img.xz