fix(ui/design): load dynamic samples, preserve edges, order YAML by c… #17
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
| # SPDX-FileCopyrightText: © 2025 StreamKit Contributors | |
| # | |
| # SPDX-License-Identifier: MPL-2.0 | |
| name: Docker Build and Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build-cpu: | |
| name: Build CPU Image | |
| runs-on: self-hosted | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract version from tag | |
| id: meta | |
| run: | | |
| VERSION=${GITHUB_REF#refs/tags/} | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| echo "Building version: ${VERSION}" | |
| { | |
| echo "tags<<EOF" | |
| echo "${REGISTRY}/${IMAGE_NAME}:${VERSION}" | |
| if [[ "$VERSION" != *-* ]]; then | |
| echo "${REGISTRY}/${IMAGE_NAME}:latest" | |
| fi | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Build and push CPU image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: type=local,src=/mnt/docker-cache | |
| cache-to: type=local,dest=/mnt/docker-cache,mode=max | |
| platforms: linux/amd64 | |
| provenance: false | |
| build-gpu: | |
| name: Build GPU Image | |
| runs-on: self-hosted | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract version from tag | |
| id: meta | |
| run: | | |
| VERSION=${GITHUB_REF#refs/tags/} | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| echo "Building version: ${VERSION}" | |
| { | |
| echo "tags<<EOF" | |
| echo "${REGISTRY}/${IMAGE_NAME}:${VERSION}-gpu" | |
| if [[ "$VERSION" != *-* ]]; then | |
| echo "${REGISTRY}/${IMAGE_NAME}:latest-gpu" | |
| fi | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Build and push GPU image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: ./Dockerfile.gpu | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| cache-from: type=local,src=/mnt/docker-cache | |
| cache-to: type=local,dest=/mnt/docker-cache,mode=max | |
| platforms: linux/amd64 | |
| provenance: false |