Skip to content

Commit 5e8966a

Browse files
committed
feat: add CI workflow for generating an ISO
1 parent 74559cb commit 5e8966a

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @xynydev @fiftydinar
1+
* @ledif

.github/workflows/build-iso.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: generate-iso
2+
on:
3+
schedule:
4+
- cron:
5+
"00 10 * * 1" # build at 10:00 UTC every Monday
6+
7+
jobs:
8+
iso:
9+
name: Create and Upload ISO
10+
runs-on: ubuntu-latest
11+
- name: Build ISO
12+
uses: jasonn3/build-container-installer@main
13+
id: iso
14+
with:
15+
arch: x86_64
16+
image_name: blue95
17+
image_repo: ghcr.io/ledif
18+
image_tag: latest
19+
version: 41
20+
variant: xfce
21+
iso_name: blue95-latest-41.iso
22+
23+
- name: Upload ISOs and Checksum to R2
24+
if: github.ref_name == 'main'
25+
shell: bash
26+
env:
27+
RCLONE_CONFIG_R2_TYPE: s3
28+
RCLONE_CONFIG_R2_PROVIDER: Cloudflare
29+
RCLONE_CONFIG_R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
30+
RCLONE_CONFIG_R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
31+
RCLONE_CONFIG_R2_REGION: auto
32+
RCLONE_CONFIG_R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
33+
SOURCE_DIR: ${{ steps.upload-directory.outputs.iso-upload-dir }}
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install -y rclone
37+
rclone copyto ${{ steps.build.outputs.iso_path }} R2:ublue-ledif
38+
rclone copyto ${{ steps.build.outputs.iso_path }}-CHECKSUM R2:ublue-ledif

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ cosign.key
22
cosign.private
33
/Containerfile
44
*swp
5+
*.iso
6+
*.iso-CHECKSUM

justfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test-local:
2-
#!/bin/bash
3-
set -xeuo pipefail
4-
52
bluebuild rebase --tempdir /var/tmp recipes/recipe.yml
3+
4+
generate-iso:
5+
sudo bluebuild generate-iso --iso-name blue95-latest.iso image ghcr.io/ledif/blue95:latest

0 commit comments

Comments
 (0)