Skip to content

feat(web): complete node graph dark mode and i18n rollout #5

feat(web): complete node graph dark mode and i18n rollout

feat(web): complete node graph dark mode and i18n rollout #5

Workflow file for this run

name: Docker Images
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
paths:
- "apps/backend/**"
- "apps/web/**"
- "packages/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "tsconfig*.json"
- ".dockerignore"
- ".github/workflows/docker-images.yml"
concurrency:
group: docker-images-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- service: backend
image_suffix: mdr-backend
dockerfile: apps/backend/Dockerfile
build_args: ""
- service: web
image_suffix: mdr-web
dockerfile: apps/web/Dockerfile
build_args: |
VITE_API_BASE=/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Normalize owner name
id: vars
shell: bash
run: echo "owner=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ steps.vars.outputs.owner }}/${{ matrix.image_suffix }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=tag
type=sha,format=short
- name: Build and push ${{ matrix.service }} image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: ${{ matrix.build_args }}
cache-from: type=gha,scope=${{ matrix.service }}
cache-to: type=gha,mode=max,scope=${{ matrix.service }}