Skip to content

Commit ebcd50b

Browse files
committed
TriOs, the sustainability update
1 parent 04e080e commit ebcd50b

File tree

5 files changed

+113
-5
lines changed

5 files changed

+113
-5
lines changed

.github/workflows/build-trios-dev.yml renamed to .github/workflows/build-trios-trixie-dev.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |
@@ -39,5 +44,6 @@ jobs:
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+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ You MUST have a working internet connection when installing TriOs.
4040

4141
Recommended 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

4545
Unstable 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

Trixie/release_name

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
13-Bepis

0 commit comments

Comments
 (0)