This repository was archived by the owner on Aug 4, 2025. It is now read-only.
Update PixelArch and Cluster OS #641
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: Update PixelArch and Cluster OS | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '30 10 * * *' | |
| jobs: | |
| push_arch_to_hub: | |
| name: Push Midori AI's PixelArch (Arch Linux) to Docker Hub | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@master | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| logout: false | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@master | |
| with: | |
| images: lunamidori5/pixelarch | |
| tags: | | |
| type=raw,value=latest | |
| type=raw,value=quartz | |
| - name: Build and push PixelArch Docker Image | |
| uses: docker/build-push-action@master | |
| with: | |
| context: ./Cluster-OS/pixelarch_os/ | |
| file: ./Cluster-OS/pixelarch_os/arch_dockerfile | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| push_cluster_os_arch_to_hub: | |
| name: Push Midori AI's PixelArch (Cluster OS) to Docker Hub | |
| runs-on: ubuntu-latest | |
| needs: push_arch_to_hub | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@master | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| logout: false | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@master | |
| with: | |
| images: lunamidori5/midori_ai_cluster | |
| tags: | | |
| type=raw,value=latest | |
| - name: Build and push Cluster OS (Arch Linux) Docker Image | |
| uses: docker/build-push-action@master | |
| with: | |
| context: ./Cluster-OS/aiclusteros/ | |
| file: ./Cluster-OS/aiclusteros/dockerfile | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| push_pixelarch_ver_to_hub: | |
| name: Push Midori AI's PixelArch to Docker Hub | |
| strategy: | |
| max-parallel: 3 | |
| matrix: | |
| ver: [amethyst, topaz, emerald] | |
| gpu: ["", "_cuda"] | |
| runs-on: self-hosted | |
| needs: push_arch_to_hub | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@master | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| logout: false | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@master | |
| with: | |
| images: lunamidori5/pixelarch | |
| tags: | | |
| type=raw,value=${{ matrix.ver }}${{ matrix.gpu }} | |
| - name: Build and push PixelArch ${{ matrix.ver }} OS Docker Image | |
| uses: docker/build-push-action@master | |
| with: | |
| context: ./Cluster-OS/pixelarch_os/ | |
| file: ./Cluster-OS/pixelarch_os/arch_dockerfile_${{ matrix.ver }}${{ matrix.gpu }} | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |