File tree Expand file tree Collapse file tree 5 files changed +113
-5
lines changed
Expand file tree Collapse file tree 5 files changed +113
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,15 @@ jobs:
1515
1616 - name : Set up variables
1717 id : vars
18+ shell : bash
1819 run : |
19- echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
20+ _commit_hash=$(git rev-parse --short HEAD)
21+ echo "commit_hash=${_commit_hash}" >> "$GITHUB_OUTPUT"
2022 mkdir -p ~/TriOs_Output
2123
24+ - name : Debug commit hash
25+ run : echo "Commit hash is: ${{ steps.vars.outputs.commit_hash }}"
26+
2227 - name : Build Docker Image
2328 working-directory : ./builder
2429 run : |
3944 - name : Upload ISO Artifact
4045 uses : actions/upload-artifact@v4
4146 with :
42- name : trios-${{ steps.vars.outputs.commit_hash }}.iso
47+ name : trios-dev- ${{ steps.vars.outputs.commit_hash }}.iso
4348 path : ~/TriOs_Output/live-image-amd64.hybrid.iso
49+
Original file line number Diff line number Diff line change 1+ name : Build TriOS ISO (Nightly)
2+
3+ on :
4+ push :
5+ branches : [ dev ]
6+ schedule :
7+ # Runs every day at midnight UTC
8+ - cron : " 0 0 * * *"
9+
10+ jobs :
11+ build-trios :
12+ name : Build and Package ISO
13+ runs-on : self-hosted
14+
15+ steps :
16+ - name : Checkout Repository
17+ uses : actions/checkout@v4
18+
19+ - name : Set up variables
20+ id : vars
21+ shell : bash
22+ run : |
23+ _timestamp=$(date -u +"%Y-%m-%dT%H-%M-%SZ")
24+ echo "timestamp=${_timestamp}" >> "$GITHUB_OUTPUT"
25+ mkdir -p ~/TriOs_Output
26+
27+ - name : Debug timestamp
28+ run : echo "Timestamp is: ${{ steps.vars.outputs.timestamp }}"
29+
30+ - name : Build Docker Image
31+ working-directory : ./builder
32+ run : |
33+ docker build -t trios-builder .
34+
35+ - name : Run Docker Container (Privileged)
36+ run : |
37+ docker run --rm -i \
38+ --privileged \
39+ -v "./Trixie:/TriOs" \
40+ -v "$HOME/TriOs_Output:/TriOs_Output" \
41+ trios-builder
42+
43+ - name : Verify ISO Output
44+ run : |
45+ ls -lh ~/TriOs_Output || true
46+
47+ - name : Upload ISO Artifact
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : trios-nightly-${{ steps.vars.outputs.timestamp }}.iso
51+ path : ~/TriOs_Output/live-image-amd64.hybrid.iso
52+
Original file line number Diff line number Diff line change 1+ name : Build TriOS ISO (Prod branch)
2+
3+ on :
4+ push :
5+ branches : [ prod ]
6+
7+ jobs :
8+ build-trios :
9+ name : Build and Package ISO
10+ runs-on : self-hosted
11+
12+ steps :
13+ - name : Checkout Repository
14+ uses : actions/checkout@v4
15+
16+ - name : Set up variables
17+ id : vars
18+ shell : bash
19+ run : |
20+ _version=$(cat ./Trixie/release_name | tr -d '\n\r')
21+ echo "version=${_version}" >> "$GITHUB_OUTPUT"
22+ mkdir -p ~/TriOs_Output
23+
24+ - name : Debug version
25+ run : echo "Version is: ${{ steps.vars.outputs.version }}"
26+
27+ - name : Build Docker Image
28+ working-directory : ./builder
29+ run : |
30+ docker build -t trios-builder .
31+
32+ - name : Run Docker Container (Privileged)
33+ run : |
34+ docker run --rm -i \
35+ --privileged \
36+ -v "./Trixie:/TriOs" \
37+ -v "$HOME/TriOs_Output:/TriOs_Output" \
38+ trios-builder
39+
40+ - name : Verify ISO Output
41+ run : |
42+ ls -lh ~/TriOs_Output || true
43+
44+ - name : Upload ISO Artifact
45+ uses : actions/upload-artifact@v4
46+ with :
47+ name : trios-prod-${{ steps.vars.outputs.version }}.iso
48+ path : ~/TriOs_Output/live-image-amd64.hybrid.iso
49+
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ You MUST have a working internet connection when installing TriOs.
4040
4141Recommended builds:
4242
43- - [ Latest Release (13 Bepis)] ( add-url-here-later-kthxbai )
43+ - [ Latest Release (13 Bepis)] ( https://nightly.link/TriangularDev/TriOs/workflows/build-trios-trixie-prod/prod )
4444
4545Unstable builds:
4646
47- - [ Nightly Build] ( add-url-here-later-kthxbai )
48- - [ Latest Commit] ( add-url-here-later-kthxbai )
47+ - [ Nightly Build] ( https://nightly.link/TriangularDev/TriOs/workflows/build-trios-trixie-nightly/dev )
48+ - [ Latest Commit] ( https://nightly.link/TriangularDev/TriOs/workflows/build-trios-trixie-dev/dev )
4949
5050## Building the ISO from source
5151
Original file line number Diff line number Diff line change 1+ 13-Bepis
You can’t perform that action at this time.
0 commit comments