-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(post): add new post for deep dive on terraform github runners
Signed-off-by: Bruce Becker <[email protected]>
- Loading branch information
1 parent
abb8a93
commit 20185dc
Showing
5 changed files
with
643 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<pre class="mermaid"> | ||
--- | ||
title: Github Runners on Demand Workflow, showing Github Actions, Repo triggers, Cloudflare and Nomad (in Hashi@Home) | ||
flowchartConfig: | ||
width: 100% | ||
config: | ||
theme: base | ||
themeVariables: | ||
background: "#d8dee9" | ||
fontFamily: "Roboto Mono" | ||
primaryColor: "#88c0d0" | ||
secondaryColor: "#81a1c1" | ||
tertiaryColor: "#ebcb8b" | ||
primaryTextColor: "#2e3440" | ||
secondaryTextColor: "#3b4252" | ||
primaryBorderColor: "#7C0000" | ||
lineColor: "#F8B229" | ||
fontSize: "20px" | ||
--- | ||
flowchart TB | ||
commit(Commit) | ||
repo(Git Repo) | ||
webhook(Repo Webhook) | ||
action_workflow(Github Action workflow) | ||
action_job(Github Action job) | ||
runner(Github Self-Hosted runner) | ||
listener(Webhook receiver) | ||
worker([Cloudflare Worker]) | ||
tunnel(Cloudflare tunnel) | ||
cf_app(Cloudflare Application) | ||
nomad_job(Nomad Parametrized job) | ||
nomad(Nomad Dispatch API) | ||
|
||
%% triggers %% | ||
subgraph Triggers["fa:fa-github Triggers"] | ||
direction LR | ||
commit-- Push update to -->repo | ||
commit-- Trigger -->action_workflow | ||
end | ||
|
||
%% webhook flow %% | ||
subgraph Webhooks | ||
direction TB | ||
repo-- Emit -->webhook | ||
subgraph Cloudflare["fab:fa-cloudflare"] | ||
direction LR | ||
webhook-- POST -->listener | ||
listener-- Route -->cf_app | ||
zta-- Protect -->cf_app | ||
cf_app-- Invoke -->worker | ||
worker-- POST -->tunnel | ||
end | ||
|
||
subgraph Nomad | ||
direction LR | ||
tunnel-- Expose -->nomad | ||
nomad-- Schedule -->nomad_job | ||
nomad_job-- Instantiates -->runner | ||
end | ||
end | ||
|
||
%% actions flow %% | ||
subgraph Actions["fa:fa-github Actions"] | ||
action_workflow-- Schedules -->action_job | ||
action_job-- Requests -->runner | ||
runner-- Executes -->action_job | ||
action_job-- Notifies Status -->commit | ||
end | ||
</pre> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,3 @@ | |
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> | ||
|
||
<script src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script> | ||
<script> | ||
$(document).ready(function () { | ||
mermaid.initialize({ | ||
startOnLoad: true, | ||
theme: "forest", | ||
}); | ||
window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid')); | ||
}); | ||
</script> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
{% comment %} | ||
<script src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script> | ||
{% endcomment %} | ||
<script> | ||
$(document).ready(function () { | ||
mermaid.initialize({ | ||
startOnLoad:true, | ||
theme: "default", | ||
fontSize: "28px", | ||
sequence: { | ||
actorFontSize: "28", | ||
actorFontFamily: "IBM Plex Mono", | ||
messageFontSize: "28", | ||
messageFontFamily: "IBM Plex Mono", | ||
showSequenceNumbers: false, | ||
} | ||
}); | ||
window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid')); | ||
}); | ||
|
This file contains 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
Oops, something went wrong.