Skip to content

Commit 84cf8ec

Browse files
committed
Separate Drawing Board maintenance from template
Students should start with planning and runtime files. Keep template checks, image sources and qualification reports in the public maintainer repository so the same candidate remains testable without distributing the harness. Preserve separate image build and verification jobs because publication runs in the build action's post phase.
1 parent c6379bd commit 84cf8ec

34 files changed

Lines changed: 4365 additions & 0 deletions

‎.github/dependabot.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directories:
5+
- /
6+
- /drawing-board
7+
- /drawing-board/image
8+
- /drawing-board/image/verify
9+
schedule:
10+
interval: weekly
11+
- package-ecosystem: devcontainers
12+
directory: /drawing-board/image
13+
schedule:
14+
interval: weekly
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Drawing Board checks
2+
3+
on:
4+
pull_request:
5+
paths: [drawing-board/**, .github/workflows/drawing-board.yml]
6+
push:
7+
branches: [main]
8+
paths: [drawing-board/**, .github/workflows/drawing-board.yml]
9+
workflow_dispatch:
10+
inputs:
11+
candidate:
12+
description: Exact firstdraft/drawing-board commit to qualify
13+
required: true
14+
default: 416ed5cbf08b0248f5a43cbe2bfe84c1a730c813
15+
16+
permissions:
17+
contents: read
18+
packages: read
19+
20+
jobs:
21+
contract:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
25+
with:
26+
persist-credentials: false
27+
- name: Select the exact template candidate
28+
id: candidate
29+
env:
30+
CANDIDATE: ${{ inputs.candidate || '416ed5cbf08b0248f5a43cbe2bfe84c1a730c813' }}
31+
run: |
32+
[[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]]
33+
echo "sha=$CANDIDATE" >> "$GITHUB_OUTPUT"
34+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
35+
with:
36+
repository: firstdraft/drawing-board
37+
ref: ${{ steps.candidate.outputs.sha }}
38+
path: board-candidate
39+
fetch-depth: 0
40+
persist-credentials: false
41+
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
42+
with:
43+
registry: ghcr.io
44+
username: ${{ github.actor }}
45+
password: ${{ secrets.GITHUB_TOKEN }}
46+
- uses: ./drawing-board
47+
with:
48+
workspace: board-candidate

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/board-candidate/
2+
/tmp/

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# dockerfiles
22

33
Storage for `Dockerfile`'s that are used for different student projects.
4+
5+
[Drawing Board maintenance](drawing-board/README.md) owns its image source, template checks, and retained
6+
qualification reports. The student workspace remains in [firstdraft/drawing-board](https://github.com/firstdraft/drawing-board).

‎drawing-board/LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 firstdraft
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎drawing-board/README.md‎

Lines changed: 385 additions & 0 deletions
Large diffs are not rendered by default.

‎drawing-board/action.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Check Drawing Board
2+
description: Check the caller's exact Drawing Board checkout in its own Dev Container
3+
inputs:
4+
workspace:
5+
description: Relative path to the Drawing Board candidate checkout
6+
default: .
7+
runs:
8+
using: composite
9+
steps:
10+
- name: Stage external checks in the disposable checkout
11+
id: checks
12+
shell: bash
13+
working-directory: ${{ inputs.workspace }}
14+
env:
15+
CHECKS_SOURCE: ${{ github.action_path }}
16+
run: |
17+
set -euo pipefail
18+
mkdir -p tmp
19+
directory="$(mktemp -d tmp/drawing-board-checks.XXXXXX)"
20+
cp -R "$CHECKS_SOURCE/script" "$CHECKS_SOURCE/image" "$directory/"
21+
echo "directory=$directory" >> "$GITHUB_OUTPUT"
22+
- uses: devcontainers/ci@513af61f4de4f75d37e4438f184ba4358f0fc1ca # v0.3.1900000450
23+
with:
24+
subFolder: ${{ inputs.workspace }}
25+
push: never
26+
runCmd: |
27+
set -euo pipefail
28+
export DRAWING_BOARD_PATH="$PWD"
29+
checks="${{ steps.checks.outputs.directory }}/script"
30+
FIRSTDRAFT_REQUIRE_IMAGE_SOURCE_COMMIT=1 "$checks/check" "$PWD"
31+
"$checks/devcontainer-smoke"
32+
"$checks/devcontainer-smoke"
33+
- name: Remove the staged checks
34+
if: always()
35+
shell: bash
36+
working-directory: ${{ inputs.workspace }}
37+
env:
38+
CHECK_DIRECTORY: ${{ steps.checks.outputs.directory }}
39+
run: |
40+
case "$CHECK_DIRECTORY" in
41+
tmp/drawing-board-checks.*) rm -rf -- "$CHECK_DIRECTORY" ;;
42+
"") ;;
43+
*) echo "Unexpected check directory: $CHECK_DIRECTORY" >&2; exit 1 ;;
44+
esac

0 commit comments

Comments
 (0)