From ec320fb3589f65e691a584021a6c20ebd538c030 Mon Sep 17 00:00:00 2001 From: timbretimber <105982513+timbretimber@users.noreply.github.com> Date: Sun, 19 Apr 2026 21:40:34 -0600 Subject: [PATCH 1/2] Add docker publish action --- .github/workflows/docker-build.yml | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/docker-build.yml diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 00000000..134d67d5 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,57 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + workflow_dispatch: + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build-and-push: + runs-on: ubuntu-latest + + permissions: + contents: read + packages: write + + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v4.0.0 + + - name: Log in to Container registry + uses: docker/login-action@v4.1.0 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata for Docker + id: meta + uses: docker/metadata-action@v6.0.0 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }} + type=sha,prefix=commit-,format=short + type=ref,event=tag + + - name: Build and push Docker image + uses: docker/build-push-action@v7.1.0 + with: + context: "{{defaultContext}}" + file: docker/Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: |- + ${{ steps.meta.outputs.labels }} + org.opencontainers.image.description=VIA - Your keyboard's best friend + org.opencontainers.image.documentation=https://www.caniusevia.com/docs/specification + org.opencontainers.image.title=VIA + org.opencontainers.image.url=https://www.caniusevia.com/ + cache-from: type=gha + cache-to: type=gha,mode=max From 131b524f47f51654673907b7b693e14df17f8452 Mon Sep 17 00:00:00 2001 From: timbretimber <105982513+timbretimber@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:38:43 -0600 Subject: [PATCH 2/2] Fix error preventing building --- src/components/panes/design.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panes/design.tsx b/src/components/panes/design.tsx index fb555958..521007eb 100644 --- a/src/components/panes/design.tsx +++ b/src/components/panes/design.tsx @@ -173,7 +173,7 @@ function importDefinitions( [] ).map( (e) => - `${fileName} ${e.dataPath ? e.dataPath + ': ' : 'Object: '}${ + `${fileName} ${e.instancePath ? e.instancePath + ': ' : 'Object: '}${ e.message }`, );