Trim workflows to remove uneeded error handling and file renaming. #9
Workflow file for this run
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: Check Dockerfile and Build Arch ISO | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 0 * * * | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Ensure Docker is installed | |
| run: | | |
| if ! command -v docker &> /dev/null; then | |
| echo "Docker is not installed. Installing..." | |
| sudo apt-get update | |
| sudo apt-get install -y docker.io | |
| sudo systemctl start docker | |
| sudo systemctl enable docker | |
| fi | |
| docker --version # Check Docker versie | |
| - name: Build and Run Docker Container | |
| run: | | |
| docker build -t arch-iso-builder . | |
| docker run --rm --privileged \ | |
| -v "${{ github.workspace }}:/workdir" \ | |
| arch-iso-builder \ | |
| bash -c "mkarchiso -v -w workdir/ -o out/ ." |