Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/components/panes/design.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function importDefinitions(
[]
).map(
(e) =>
`${fileName} ${e.dataPath ? e.dataPath + ': ' : 'Object: '}${
`${fileName} ${e.instancePath ? e.instancePath + ': ' : 'Object: '}${
e.message
}`,
);
Expand Down
Loading