Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3230f71
🐛 remove --warningsAsErrors flag from docker build commands
gimlichael Nov 25, 2026
76d4ca9
♻️ extract framework-view conventions and metadata helpers
aicia-bot Nov 25, 2026
f143dde
✅ add pester unit tests and update framework-view fixtures
aicia-bot Nov 25, 2026
19e73fe
📝 update documentation for framework-view conventions
aicia-bot Nov 25, 2026
d643852
💬 update changelog for v1.1.0 release
aicia-bot Nov 25, 2026
aaa1eec
♻️ extract metadata caching and reuse logic into DocfxMetadata
aicia-bot Nov 25, 2026
17d7fdc
✅ add Build-DocfxFrameworkViews tests and expand metadata tests
aicia-bot Nov 25, 2026
15be668
📝 update framework-views and test suite documentation
aicia-bot Nov 25, 2026
6c966b0
🐳 add engine-aware docker image versioning
aicia-bot Nov 25, 2026
7131ac2
✅ add pester tests for builder image script
aicia-bot Nov 25, 2026
8d6c12d
📚 document docker image versioning and publishing
aicia-bot Nov 25, 2026
63f7a96
💬 update changelog for engine-aware image versioning
aicia-bot Nov 25, 2026
f733150
🙈 add gitignore and dockerignore rules
aicia-bot Nov 25, 2026
1197220
🔨 add build-once oci delivery tooling
aicia-bot Nov 25, 2026
36d54a9
✅ add oci, release, and container test suites
aicia-bot Nov 25, 2026
55b884c
👷 add build-once github actions workflows
aicia-bot Nov 25, 2026
48cf1e7
📝 add repository engineering and ci/cd instructions
aicia-bot Nov 25, 2026
f56d311
📚 document build-once ci/cd lifecycle and verification
aicia-bot Nov 25, 2026
e4dc2c8
💬 update changelog for build-once delivery lifecycle
aicia-bot Nov 25, 2026
8fb6713
🐛 handle strictmode and ansi logs in framework-views
aicia-bot Nov 25, 2026
2fbfe74
✅ test strictmode and ansi logs in framework-views
aicia-bot Nov 25, 2026
1c24089
🦺 verify oci archive digest and size before assembly
aicia-bot Nov 25, 2026
8a95589
✅ test archive digest and size checks in release assembly
aicia-bot Nov 25, 2026
7f73c5a
🐛 fix linux bind-mount cleanup in container test
aicia-bot Nov 25, 2026
0466a11
🐛 use nginx entrypoint for config validation test
aicia-bot Nov 25, 2026
c5c1725
👷 use ghcr nginx image in ci routing tests
aicia-bot Nov 25, 2026
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
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!Dockerfile
!templates/ms-style/**
!framework-views/**
4 changes: 4 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
self-hosted-runner:
labels:
- ubuntu-26.04
- ubuntu-26.04-arm
92 changes: 92 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Container validation

on:
workflow_call:

permissions:
contents: read

jobs:
container:
name: Native ${{ matrix.arch.architecture }}
runs-on: ${{ matrix.arch.runner }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
arch:
- { architecture: amd64, runner: ubuntu-26.04 }
- { architecture: arm64, runner: ubuntu-26.04-arm }
steps:
- name: Checkout
uses: codebeltnet/git-checkout@v1
with:
ref: ${{ github.sha }}

- name: Install .NET SDK
uses: codebeltnet/install-dotnet@v3
with:
versionPrecision: patch

- name: Install OCI transfer tool
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends skopeo

- name: Enable OCI exporter
run: docker buildx create --driver docker-container --use

- name: Build once and validate exported candidate on native CPU
shell: pwsh
env:
TARGET_PLATFORM: linux/${{ matrix.arch.architecture }}
TARGET_ARCH: ${{ matrix.arch.architecture }}
EVENT_NAME: ${{ github.event_name }}
REF_TYPE: ${{ github.ref_type }}
REF_NAME: ${{ github.ref_name }}
RUN_NUMBER: ${{ github.run_number }}
run: |
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
Import-Module ./tools/DocfxImage.psm1 -Force
$null = Test-DocfxVersionConsistency
$engineVersion = if ($env:EVENT_NAME -ceq 'push' -and $env:REF_TYPE -ceq 'tag') {
Resolve-ReleaseTagVersion -Tag $env:REF_NAME
} else {
"0.0.0-ci.$($env:RUN_NUMBER)"
}
./BuildAndPushDocfxImage.ps1 `
-BuildOnly `
-EngineVersion $engineVersion `
-Platform $env:TARGET_PLATFORM `
-RequireNative `
-ArchivePath "./artifacts/docfx.$($env:TARGET_ARCH).oci.tar" `
-MetadataFile './artifacts/docfx-image.json' `
-PassThru | Format-List

- name: Preserve exact tested OCI content and native verification record
if: github.event_name == 'push' && github.ref_type == 'tag'
uses: actions/upload-artifact@v7
with:
name: container-${{ matrix.arch.architecture }}
path: artifacts/*
compression-level: 0
if-no-files-found: error
retention-days: 1

- name: Preserve PR validation metadata without large container archives
if: github.event_name != 'push' || github.ref_type != 'tag'
uses: actions/upload-artifact@v7
with:
name: container-metadata-${{ matrix.arch.architecture }}-${{ github.run_attempt }}
path: artifacts/*.json
if-no-files-found: error
retention-days: 7

quality:
name: Both native architectures verified
if: always()
needs: [container]
runs-on: ubuntu-26.04
steps:
- env:
RESULT: ${{ needs.container.result }}
run: test "$RESULT" = success
137 changes: 137 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Deploy Docker Hub images

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: Published latest release tag to recover (existing verified artifacts only)
required: true
type: string

permissions:
contents: read

concurrency:
group: docfx-production
cancel-in-progress: false

jobs:
resolve:
name: Resolve approved published release
runs-on: ubuntu-26.04
timeout-minutes: 15
outputs:
sha: ${{ steps.resolve.outputs.sha }}
engine-version: ${{ steps.resolve.outputs.engine-version }}
deployment-sha: ${{ steps.resolve.outputs.deployment-sha }}
steps:
- name: Checkout deployment tooling from main
uses: codebeltnet/git-checkout@v1
with:
ref: main

- id: resolve
name: Resolve release identity, ancestry, and asset inventory
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ github.event.release.tag_name || inputs.tag }}
run: |
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$deploymentSha = (& git rev-parse HEAD).Trim()
if ($LASTEXITCODE -ne 0 -or $deploymentSha -cnotmatch '^[0-9a-f]{40}$') {
throw 'Unable to resolve deployment tooling revision from main.'
}
Add-Content -LiteralPath $env:GITHUB_OUTPUT -Value "deployment-sha=$deploymentSha" -Encoding utf8NoBOM
./tools/Invoke-DocfxRelease.ps1 -Command Resolve

- name: Preserve resolved release identity
uses: actions/upload-artifact@v7
with:
name: resolved-release
path: resolved/*
retention-days: 7
if-no-files-found: error

verify:
name: Verify durable OCI release artifact
needs: [resolve]
runs-on: ubuntu-26.04
timeout-minutes: 45
permissions:
contents: read
actions: read
steps:
- name: Checkout pinned deployment tooling
uses: codebeltnet/git-checkout@v1
with:
ref: ${{ needs.resolve.outputs.deployment-sha }}

- name: Install .NET SDK
uses: codebeltnet/install-dotnet@v3
with:
versionPrecision: patch

- name: Download resolved release identity
uses: actions/download-artifact@v8
with:
name: resolved-release
path: resolved

- name: Reconstruct and validate release run, native results, checksums, and attestations
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: ./tools/Invoke-DocfxRelease.ps1 -Command Restore

- name: Verify reconstructed OCI archive with Codebelt verifier
uses: codebeltnet/oci-artifact-verify@v1
with:
archive-path: ${{ github.workspace }}/out/docfx.oci.tar
checksum-path: ${{ github.workspace }}/out/docfx.oci.tar.sha256
version: ${{ needs.resolve.outputs.engine-version }}
revision: ${{ needs.resolve.outputs.sha }}

publish:
name: Promote verified OCI image to Docker Hub
needs: [resolve, verify]
runs-on: ubuntu-26.04
timeout-minutes: 60
environment: Production
permissions:
contents: read
actions: read
steps:
- name: Checkout pinned deployment tooling
uses: codebeltnet/git-checkout@v1
with:
ref: ${{ needs.resolve.outputs.deployment-sha }}

- name: Install .NET SDK
uses: codebeltnet/install-dotnet@v3
with:
versionPrecision: patch

- name: Download resolved release identity
uses: actions/download-artifact@v8
with:
name: resolved-release
path: resolved

- name: Install OCI transfer tool
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends skopeo

- name: Authenticate, promote without rebuild, and verify published tags
env:
GH_TOKEN: ${{ github.token }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
set -euo pipefail
export REGISTRY_AUTH_FILE="$RUNNER_TEMP/docfx-auth.json"
trap 'rm -f "$REGISTRY_AUTH_FILE"' EXIT
printf '%s' "$DOCKERHUB_TOKEN" | skopeo login --authfile "$REGISTRY_AUTH_FILE" --username "$DOCKERHUB_USERNAME" --password-stdin docker.io
pwsh -NoProfile -File ./tools/Invoke-DocfxRelease.ps1 -Command Publish
Loading