diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 6a46c8d..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Build ISO images -on: - push: - branches: - - lapis - paths: - - "kickstarts/**" - - "!kickstarts/docker/**" - workflow_dispatch: - -jobs: - build: - runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }} - strategy: - fail-fast: false - matrix: - arch: - - x86_64 - - aarch64 - variant: - - budgie - - gnome - - pantheon - - plasma - container: - image: fedora:38 - options: --privileged - - steps: - - name: Prepare loop devices - run: | - for i in $(seq 0 23); - do - sudo mknod -m 0660 /dev/loop$i b 7 0 2> /dev/null || true - done - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - name: Install repositories - run: | - sudo dnf install -y dnf-plugins-core - sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra38.repo - sudo dnf install -y lorax-lmc-novirt pykickstart make - - name: Build ISO - run: | - ./build.sh ${{ matrix.variant }} - - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.variant }}-${{ matrix.arch }} - path: build/ - deployment: - runs-on: ubuntu-latest - environment: production - needs: build - steps: - - uses: actions/download-artifact@v3 - - name: Prepare images directory - run: | - mkdir -p images - variants=(budgie gnome pantheon plasma) - archs=(x86_64 aarch64) - - for variant in "${variants[@]}"; do - for arch in "${archs[@]}"; do - name=$([ "$variant" == "budgie" ] && echo "flagship" || echo "$variant") - mv ${variant}-${arch}/image/*.iso images/ultramarine-${name}-${arch}.iso - sha256sum images/ultramarine-${name}-${arch}.iso > images/ultramarine-${name}-${arch}.iso.sha256sum - done - done - - name: Upload to R2 - uses: shallwefootball/s3-upload-action@master - with: - endpoint: ${{ secrets.S3_ENDPOINT }} - aws_key_id: ${{ secrets.S3_KEY_ID }} - aws_secret_access_key: ${{ secrets.S3_SECRET_KEY }} - aws_bucket: "images" - source_dir: "images" - destination_dir: isos/ultramarine/38/ diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 618898f..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Docker Image -on: - push: - branches: - - um38 - paths: - - kickstarts/docker/** - workflow_dispatch: - -jobs: - build: - strategy: - fail-fast: false - matrix: - runner: - - ubuntu-latest - - ARM64 - variant: - - docker - - docker-minimal - runs-on: ${{ matrix.runner }} - container: - image: fedora:38 - options: --cap-add=SYS_ADMIN --privileged - - services: - dind: - image: docker:20.10.7-dind - options: --privileged - ports: - - 2375:2375 - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - name: Install repositories - run: | - sudo dnf install -y dnf-plugins-core - sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/terra38.repo - sudo dnf install -y lorax-lmc-novirt pykickstart make moby-engine - # upload image to ghcr.io - - name: Login to ghcr.io - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build Image - env: - releasever: 38 - run: | - ./build.sh -p ${{ matrix.variant }} - - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.variant }}-${{ matrix.arch }} - path: build/