Skip to content

fix(faults): enable real-time toast notifications for SSE fault events #43

fix(faults): enable real-time toast notifications for SSE fault events

fix(faults): enable real-time toast notifications for SSE fault events #43

name: Docker Publish
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- 'v*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# latest on main branch
type=raw,value=latest,enable={{is_default_branch}}
# version tag (v1.2.3 -> 1.2.3)
type=semver,pattern={{version}}
# major.minor (v1.2.3 -> 1.2)
type=semver,pattern={{major}}.{{minor}}
# major only (v1.2.3 -> 1)
type=semver,pattern={{major}}
# sha for traceability
type=sha,prefix=sha-,format=short
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# amd64 only - arm64 fails due to QEMU emulation issues with npm ci
platforms: linux/amd64