commit 660cd8f2bd2ebac9b11e6fd21dd582a26894460a Author: Morgan McMillian Date: Sat Nov 19 15:06:15 2022 -0800 Initial site and deployment setup diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2832cda --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,16 @@ +pipeline { + agent none + environment { + SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials') + } + stages { + stage('Execute playbook') { + steps { + ansiblePlaybook( + playbook: 'main.yaml' + credentialsId: 'onedrop-vetinari' + ) + } + } + } +} diff --git a/html/go/pnut-bridge/index.html b/html/go/pnut-bridge/index.html new file mode 100644 index 0000000..4f88d91 --- /dev/null +++ b/html/go/pnut-bridge/index.html @@ -0,0 +1,16 @@ + + + + + + + + pnut-bridge + + + +

pnut-bridge

+

A matterbridge API plugin allowing you to connect message channels on pnut.io to other supported chat services.

+

Project hosted on Gitea.

+ + diff --git a/html/go/pnut-bridge/style.css b/html/go/pnut-bridge/style.css new file mode 100644 index 0000000..3805956 --- /dev/null +++ b/html/go/pnut-bridge/style.css @@ -0,0 +1,82 @@ +:root { + --bg: #ffffff; + --fg: #171a1f; + --link: #004cb8; + --active: #006aff; + --pre: #e9ecef; +} + +body { + font-family: sans-serif; + background-color: var(--bg); + color: var(--fg); + padding: 2rem 1.25rem; + line-height: 1.5; + max-width: 600px; + margin: 0; +} + +header { + margin-bottom: 1rem; + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; +} + +header h1 { + font-size: 1.2rem; + margin-top: 0; + margin-bottom: 0; + margin-right: 1rem; +} + +a { + color: var(--link); + position: relative; +} + +a:hover { + color: var(--active); +} + +main h1 { + font-size: 1.6rem; + margin: 0; +} + +h2 { + font-size: 1.35rem; +} + +h3 { + font-size: 1.1rem; +} + +ul { + padding: 0; + list-style: None; +} + +pre { + display: block; + padding: .25rem; + margin: .25rem 0; + overflow-x: auto; + font-size: 1.2em; + background-color: var(--pre); +} + +footer { + margin-top: 2rem; +} + +@media (prefers-color-scheme: dark) { + :root { + --bg: #222222; + --fg: #efefef; + --link: #aaaaaa; + --active: #dddddd; + --pre: #555555; + } +} diff --git a/html/go/woodstock/index.html b/html/go/woodstock/index.html new file mode 100644 index 0000000..606eb3e --- /dev/null +++ b/html/go/woodstock/index.html @@ -0,0 +1,16 @@ + + + + + + + + woodstock + + + +

woodstock

+

A client library for pnut.io written in Go.

+

Project hosted on GitLab.

+ + diff --git a/html/go/woodstock/style.css b/html/go/woodstock/style.css new file mode 100644 index 0000000..3805956 --- /dev/null +++ b/html/go/woodstock/style.css @@ -0,0 +1,82 @@ +:root { + --bg: #ffffff; + --fg: #171a1f; + --link: #004cb8; + --active: #006aff; + --pre: #e9ecef; +} + +body { + font-family: sans-serif; + background-color: var(--bg); + color: var(--fg); + padding: 2rem 1.25rem; + line-height: 1.5; + max-width: 600px; + margin: 0; +} + +header { + margin-bottom: 1rem; + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; +} + +header h1 { + font-size: 1.2rem; + margin-top: 0; + margin-bottom: 0; + margin-right: 1rem; +} + +a { + color: var(--link); + position: relative; +} + +a:hover { + color: var(--active); +} + +main h1 { + font-size: 1.6rem; + margin: 0; +} + +h2 { + font-size: 1.35rem; +} + +h3 { + font-size: 1.1rem; +} + +ul { + padding: 0; + list-style: None; +} + +pre { + display: block; + padding: .25rem; + margin: .25rem 0; + overflow-x: auto; + font-size: 1.2em; + background-color: var(--pre); +} + +footer { + margin-top: 2rem; +} + +@media (prefers-color-scheme: dark) { + :root { + --bg: #222222; + --fg: #efefef; + --link: #aaaaaa; + --active: #dddddd; + --pre: #555555; + } +} diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..920f93c --- /dev/null +++ b/html/index.html @@ -0,0 +1,13 @@ + + + + + + + mcmillian.dev + + + +

morgan.mcmillian.dev

+ + diff --git a/html/style.css b/html/style.css new file mode 100644 index 0000000..3805956 --- /dev/null +++ b/html/style.css @@ -0,0 +1,82 @@ +:root { + --bg: #ffffff; + --fg: #171a1f; + --link: #004cb8; + --active: #006aff; + --pre: #e9ecef; +} + +body { + font-family: sans-serif; + background-color: var(--bg); + color: var(--fg); + padding: 2rem 1.25rem; + line-height: 1.5; + max-width: 600px; + margin: 0; +} + +header { + margin-bottom: 1rem; + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; +} + +header h1 { + font-size: 1.2rem; + margin-top: 0; + margin-bottom: 0; + margin-right: 1rem; +} + +a { + color: var(--link); + position: relative; +} + +a:hover { + color: var(--active); +} + +main h1 { + font-size: 1.6rem; + margin: 0; +} + +h2 { + font-size: 1.35rem; +} + +h3 { + font-size: 1.1rem; +} + +ul { + padding: 0; + list-style: None; +} + +pre { + display: block; + padding: .25rem; + margin: .25rem 0; + overflow-x: auto; + font-size: 1.2em; + background-color: var(--pre); +} + +footer { + margin-top: 2rem; +} + +@media (prefers-color-scheme: dark) { + :root { + --bg: #222222; + --fg: #efefef; + --link: #aaaaaa; + --active: #dddddd; + --pre: #555555; + } +} diff --git a/main.yaml b/main.yaml new file mode 100644 index 0000000..1f56aca --- /dev/null +++ b/main.yaml @@ -0,0 +1,19 @@ +--- +- name: Deploy mcmillian.dev static site + hosts: vetinari.dreamfall.space + vars: + html_location: /var/www/html/mcmillian.dev + + tasks: + - name: ping host + ansible.builtin.ping: + + - name: setup location + ansible.builtin.file: + path: "{{ html_location }}" + state: directory + + - name: sync html directory + ansible.posix.synchronize: + src: html/ + dest: "{{ html_location }}/"