name: Create and publish an ISO on: push: branches: - 'main' tags: - 'v*' pull_request: # Test Values env: ARCH: 'x86_64' IMAGE_NAME: 'base' IMAGE_REPO: 'quay.io/fedora-ostree-desktops' VERSION: '39' VARIANT: 'Server' jobs: build-and-push-iso: runs-on: ubuntu-latest permissions: contents: read packages: write steps: - name: Checkout repo uses: actions/checkout@v4 - name: Lowercase Registry id: registry_case uses: ASzc/change-string-case-action@v6 with: string: ${{ env.IMAGE_REPO }} - name: Build ISO uses: ./ with: arch: ${{ env.ARCH}} image_name: ${{ env.IMAGE_NAME}} imagE_repo: ${{ env.IMAGE_REPO}} version: ${{ env.VERSION }} variant: ${{ env.VARIANT }} - name: Rename ISO run: | mv build/deploy.iso ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso - name: Upload ISO as artifact uses: actions/upload-artifact@v4 with: name: ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso path: end_iso/*.iso if-no-files-found: error retention-days: 0 compression-level: 0 overwrite: true