Commit test #15
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 (Dev branch) | |
| on: | |
| push: | |
| 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: | | |
| _commit_hash=$(git rev-parse --short HEAD) | |
| echo "commit_hash=${_commit_hash}" >> "$GITHUB_OUTPUT" | |
| mkdir -p ./TriOs_Output | |
| - name: Debug commit hash | |
| run: | | |
| echo "Commit hash is: ${{ steps.vars.outputs.commit_hash }}" | |
| - 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-dev-${{ steps.vars.outputs.commit_hash }}.iso | |
| path: ./TriOs_Output/live-image-amd64.hybrid.iso | |