TriOs: The make everything work update #2
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: | |
| push: | |
| branches: [ dev ] | |
| schedule: | |
| # Runs every day at midnight UTC | |
| - cron: "0 0 * * *" | |
| 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 "$HOME/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 | |