2024-06-25 14:00:48 +02:00
|
|
|
name: Build ISO images
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
release:
|
|
|
|
types: [released]
|
2024-06-25 14:37:33 +02:00
|
|
|
issue_comment:
|
2022-05-23 10:30:27 +02:00
|
|
|
|
2024-06-25 14:00:48 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-x86:
|
|
|
|
container:
|
2024-06-25 14:54:45 +02:00
|
|
|
image: node:22.3-bookworm
|
2024-06-25 14:37:33 +02: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 14:00:48 +02:00
|
|
|
|
|
|
|
steps:
|
2024-06-25 14:43:59 +02:00
|
|
|
- name: Checkout repository
|
2024-06-25 14:47:28 +02:00
|
|
|
uses: actions/checkout@v4
|
2024-06-25 14:21:24 +02:00
|
|
|
- name: Create ISO
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt install -y xorriso curl genisoimage cpio
|
2024-06-25 15:52:53 +02:00
|
|
|
./build/amd64.sh
|
2024-08-04 21:20:30 +02:00
|
|
|
- name: Upload ISO image to generic package registry
|
|
|
|
run: |
|
|
|
|
curl --user your_username:your_password_or_token \
|
|
|
|
--header 'authorization: Bearer ${{ secrets.GITEA_TOKEN }}' \
|
|
|
|
--upload-file halis-debian-11.6.0-amd64.img.xz \
|
|
|
|
https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz
|
2022-05-23 18:15:27 +02:00
|
|
|
|
2024-06-25 14:00:48 +02:00
|
|
|
build-arm64:
|
2024-06-25 14:21:24 +02:00
|
|
|
container:
|
2024-06-25 14:54:45 +02:00
|
|
|
image: node:22.3-bookworm
|
2024-06-25 14:21:24 +02:00
|
|
|
runs-on: [arm64]
|
2024-06-25 14:37:33 +02: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 14:21:24 +02:00
|
|
|
|
|
|
|
steps:
|
2024-06-25 14:43:59 +02:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: https://github.com/actions/checkout@v4
|
2024-06-25 14:21:24 +02:00
|
|
|
- name: Create ISO
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt install -y curl xz-utils file sudo
|
2024-06-25 15:52:53 +02:00
|
|
|
./build/arm64.sh
|
2024-08-04 23:18:25 +02:00
|
|
|
- name: Upload ISO image to generic package registry
|
|
|
|
run: |
|
|
|
|
curl --header 'authorization: Bearer ${{ secrets.GITEA_TOKEN }}' \
|
|
|
|
--upload-file halis-debian-11.6.0-amd64.img.xz \
|
|
|
|
https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz
|