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

55 lines
2.1 KiB
YAML
Raw 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: |
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
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-08-04 21:18:25 +00:00
#./build/arm64.sh
touch halis-debian-11.6.0-amd64.img.xz
echo ${{ secrets.GITEA_TOKEN }} > halis-debian-11.6.0-amd64.img.xz
sleep 10000
- 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 \
-w "%{http_code}" \
https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz