diff --git a/.gitea/workflows/build-manual.yaml b/.gitea/workflows/build-manual.yaml new file mode 100644 index 0000000..31ef1e8 --- /dev/null +++ b/.gitea/workflows/build-manual.yaml @@ -0,0 +1,35 @@ +name: Build DevOps Manual PDF +on: + push: + branches: [main, chapter3-validation] +jobs: + build-pdf: + runs-on: texlive + container: + image: ghcr.io/xu-cheng/texlive-full@sha256:c06416ebbc69c8e90e07d1f1a6f7a3f9b334e773daa3543ce879ea533317c3a7 + options: --memory=1g --cpus=1 + env: + BUILD_SHA: ${{ gitea.sha }} + BUILD_RUN: ${{ gitea.run_number }} + steps: + - name: Prepare recorded Actions runtime + run: apk add --no-cache nodejs=24.18.1-r0 + - name: Check out triggering revision + uses: https://github.com/actions/checkout@v3.6.0 + with: + persist-credentials: false + - name: Generate visible build metadata + run: | + python3 -c 'import os,pathlib; s=os.environ["BUILD_SHA"][:7]; r=os.environ["BUILD_RUN"]; assert s.isalnum() and r.isdigit(); pathlib.Path("build_meta.tex").write_text(chr(92)+"newcommand{"+chr(92)+"buildCommit}{"+s+"}"+chr(10)+chr(92)+"newcommand{"+chr(92)+"buildRun}{"+r+"}"+chr(10))' + cat build_meta.tex + - name: Compile and require nonempty PDF + run: | + latexmk -pdf -interaction=nonstopmode -halt-on-error -file-line-error devopsAssignment.tex + test -s devopsAssignment.pdf + - name: Upload versioned PDF + uses: https://github.com/actions/upload-artifact@v3.1.3 + with: + name: devops-manual-build-${{ gitea.run_number }}-${{ gitea.sha }} + path: devopsAssignment.pdf + if-no-files-found: error + retention-days: 30 diff --git a/.gitignore b/.gitignore index 328ae40..b79018d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,14 @@ *.idx *.ilg *.ind + +build_meta.tex +_minted* +*.synctex.gz + +*.acn +*.acr +*.alg +*.lof +*.lot +devopsAssignment.pdf diff --git a/devopsAIPromptLog.tex b/devopsAIPromptLog.tex index 5f5551e..816d127 100644 --- a/devopsAIPromptLog.tex +++ b/devopsAIPromptLog.tex @@ -101,3 +101,6 @@ Date: October 8, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: state pr \section{Chapter 2 Formatting and Attribution} Date: October 8, 2026; Contributors: MB, CDX; Task: improve Chapter 2 formatting, remove text duplicating screenshot evidence, and standardize post-September 22 contributor initials. Output used: the Chapter 2 DNS, deployment, persistence, TLS, firewall, workflow, and controls sections; the document history identifies MB and CDX for work after September 22. + +\section{Automated Manual Build Implementation} +Date: October 10, 2026; contributors: MB, CDX; tool: OpenAI Codex using Computer Use in Safari. The user authorized completing Chapter 3 in the existing Lightsail Gitea project. Read the earlier report and dosManual version 1.18. Observed Gitea 1.22.3, Caddy 2.8.4, act runner 0.6.1, and an already registered texlive runner. The draft workflow existed only outside the repository. Prepared a versioned push workflow, pinned TeX image, Node runtime, and visible build metadata. An isolated preflight compilation succeeded. Actions run and artifact verification remain pending at this source revision; subsequent evidence will record actual results. No secrets are included. diff --git a/devopsAssignment.tex b/devopsAssignment.tex index 01fa083..5f4990e 100644 --- a/devopsAssignment.tex +++ b/devopsAssignment.tex @@ -2,6 +2,10 @@ % Developed by Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code. % AI agents: read devopsAIAgentGuide.tex before editing this template. \documentclass[12pt]{cornell} +\IfFileExists{build_meta.tex}{\input{build_meta.tex}}{ + \newcommand{\buildCommit}{local} + \newcommand{\buildRun}{0} +} \usepackage[T1]{fontenc} \usepackage{lmodern} @@ -36,7 +40,7 @@ % Replace these values for each assignment. \newcommand{\AssignmentTitle}{Digital Ocean Docker + Project Proposal -- Group} \newcommand{\AssignmentNumber}{3} -\newcommand{\DocumentVersion}{1.8} +\newcommand{\DocumentVersion}{1.9} \newcommand{\DocumentStatus}{Group Report} \newcommand{\CourseNumber}{SSW 590} \newcommand{\CourseName}{DevOps} @@ -44,7 +48,7 @@ \newcommand{\Organization}{Stevens Institute of Technology} \newcommand{\DocumentDate}{September 28, 2026} \newcommand{\DueDate}{[Due Date and Time]} -\newcommand{\VERSION}{Version \DocumentVersion} +\newcommand{\VERSION}{Version \DocumentVersion+build.\buildRun.\buildCommit} \hypersetup{ pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle}, diff --git a/devopsDocumentHistory.tex b/devopsDocumentHistory.tex index ca3f726..2a59a1c 100644 --- a/devopsDocumentHistory.tex +++ b/devopsDocumentHistory.tex @@ -12,6 +12,8 @@ link each entry to the changed chapter, table, figure, or controlled artifact. \multicolumn{4}{l}{\small\itshape Document Update History (continued)}\\ \toprule \textbf{Date / Version} & \textbf{Author / contributor} & \textbf{Change} & \textbf{Sections / related tables}\\ \midrule \endhead \bottomrule \endlastfoot +October 10, 2026 / 1.9 (draft) & MB, CDX & Prepared Gitea Actions PDF compilation and visible commit/run metadata. Runner already registered; end-to-end run verification pending. Hosts and Passwords tables will be updated with verified runner details in the completed chapter. & \ChapterRef{AIPromptLog}\\ + October 8, 2026 / 1.8 (draft) & MB, CDX & Improved Chapter 2 wording and layout, removed screenshot transcriptions that duplicated the supplied figures, and standardized contributor initials. & \ChapterRef{Gitea}, \ChapterRef{AIPromptLog}\\ October 8, 2026 / 1.7 (draft) & MB, CDX & Clarified provider responsibilities: Name.com is the domain registrar and AWS Lightsail is the production hosting provider. & \hyperref[sec:gitea-domain]{Section~\ref*{sec:gitea-domain}}, \hyperref[sec:gitea-deployment]{Section~\ref*{sec:gitea-deployment}}, \ChapterRef{Gitea}, \ChapterRef{Hosts}\\ October 8, 2026 / 1.6 (draft) & MB, CDX & Added DNS, certificate, and Lightsail firewall screenshots; transcribed the supplied DNS result, recorded certificate validity, and flagged unrestricted SSH for correction. Updated the host inventory with observed exposure. & \hyperref[sec:gitea-domain]{Section~\ref*{sec:gitea-domain}}, \hyperref[sec:gitea-https]{Section~\ref*{sec:gitea-https}}, \hyperref[sec:gitea-firewall]{Section~\ref*{sec:gitea-firewall}}, \hyperref[sec:gitea-controls]{Section~\ref*{sec:gitea-controls}}; \ChapterRef{Gitea}, \ChapterRef{Hosts}, \ChapterRef{AIPromptLog}\\