Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Kimi: add workers document-mimetype-from-header and pdf-nldocspec #41

Kimi: add workers document-mimetype-from-header and pdf-nldocspec

Kimi: add workers document-mimetype-from-header and pdf-nldocspec #41

Workflow file for this run

name: Build and publish NLdoc Editor image
on:
push:
branches:
- main
workflow_dispatch:
inputs:
ref:
description: Git ref of editor repo (branch/tag/commit)
required: false
default: main
image_tag:
description: Image tag to publish
required: false
default: latest
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout NL_doc repo
uses: actions/checkout@v4
- name: Compute lowercase owner
shell: bash
run: echo "OWNER_LC=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_ENV"
- name: Clone editor source
run: |
git clone --depth 1 --branch "${{ github.event.inputs.ref || 'main' }}" https://gitlab.com/logius/nldoc/web/editor.git editor-src
- 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.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push editor image
uses: docker/build-push-action@v6
with:
context: editor-src
file: editor-src/Dockerfile
push: true
tags: ghcr.io/${{ env.OWNER_LC }}/nldoc-editor:${{ github.event.inputs.image_tag || 'latest' }}
build-args: |
NODE_ENV=production
provenance: false
sbom: false