WIP: Chapter 5 monitoring deployment and measured recovery evidence #4
@@ -2,13 +2,14 @@
|
|||||||
# The runner label must match the registered self-managed Gitea runner.
|
# The runner label must match the registered self-managed Gitea runner.
|
||||||
name: manual-pdf
|
name: manual-pdf
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- chapter3-failure-test
|
- chapter3-failure-test
|
||||||
- chapter5-sre-monitoring
|
- chapter5-sre-monitoring
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-manual:
|
build-manual:
|
||||||
@@ -17,6 +18,7 @@ jobs:
|
|||||||
- name: Check out source
|
- name: Check out source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
||||||
- name: Generate build metadata
|
- name: Generate build metadata
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -29,6 +31,7 @@ jobs:
|
|||||||
echo \renewcommand{\WorkflowRunNumber}{%GITHUB_RUN_NUMBER%}>> devopsBuildMetadata.tex
|
echo \renewcommand{\WorkflowRunNumber}{%GITHUB_RUN_NUMBER%}>> devopsBuildMetadata.tex
|
||||||
echo \renewcommand{\WorkflowRunAttempt}{%GITHUB_RUN_ATTEMPT%}>> devopsBuildMetadata.tex
|
echo \renewcommand{\WorkflowRunAttempt}{%GITHUB_RUN_ATTEMPT%}>> devopsBuildMetadata.tex
|
||||||
|
|
||||||
|
|
||||||
- name: Compile manual
|
- name: Compile manual
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -36,9 +39,11 @@ jobs:
|
|||||||
if not exist devopsAssignment.pdf exit /b 1
|
if not exist devopsAssignment.pdf exit /b 1
|
||||||
for %%A in (devopsAssignment.pdf) do if %%~zA LEQ 0 exit /b 1
|
for %%A in (devopsAssignment.pdf) do if %%~zA LEQ 0 exit /b 1
|
||||||
|
|
||||||
|
|
||||||
- name: Upload compiled PDF
|
- name: Upload compiled PDF
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: devops-it-manual-${{ github.run_number }}-${{ github.sha }}
|
name: devops-it-manual-${{ github.run_number }}-${{ github.sha }}
|
||||||
path: devopsAssignment.pdf
|
path: devopsAssignment.pdf
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user