This repository was archived by the owner on Mar 20, 2026. It is now read-only.
Shim: also publish spec-html writer job to worker.spec-html.jobs.html… #45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |