Build TriOS ISO (Nightly) #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build TriOS ISO (Nightly) | |
| on: | |
| schedule: | |
| # Runs every day at midnight UTC | |
| - cron: "0 7 * * *" | |
| # Allows manual triggering, but only on the 'dev' branch | |
| workflow_dispatch: | |
| branches: | |
| - dev | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-trios: | |
| name: Build and Package ISO | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up variables | |
| id: vars | |
| shell: bash | |
| run: | | |
| _timestamp=$(date -u +"%Y-%m-%dT%H-%M-%SZ") | |
| echo "timestamp=${_timestamp}" >> "$GITHUB_OUTPUT" | |
| mkdir -p ./TriOs_Output | |
| - name: Debug timestamp | |
| run: | | |
| echo "Timestamp is: ${{ steps.vars.outputs.timestamp }}" | |
| - name: Build Docker Image | |
| working-directory: ./builder | |
| run: | | |
| docker build -t trios-builder . | |
| - name: Run Docker Container (Privileged) | |
| run: | | |
| docker run --rm -i \ | |
| --privileged \ | |
| -v "./Trixie:/TriOs" \ | |
| -v "./TriOs_Output:/TriOs_Output" \ | |
| trios-builder | |
| - name: Verify ISO Output | |
| run: | | |
| ls -lh ./TriOs_Output || true | |
| - name: Upload ISO Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: trios-nightly-${{ steps.vars.outputs.timestamp }}.iso | |
| path: ./TriOs_Output/live-image-amd64.hybrid.iso | |