Initial site and deployment setup

This commit is contained in:
Morgan McMillian 2022-11-19 15:06:15 -08:00
commit 660cd8f2bd
8 changed files with 326 additions and 0 deletions

16
Jenkinsfile vendored Normal file
View file

@ -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'
)
}
}
}
}

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="go-import" content="mcmillian.dev/go/pnut-bridge git https://git.dreamfall.space/thrrgilag/pnut-bridge.git">
<link rel="stylesheet" href="/style.css">
<title>pnut-bridge</title>
</head>
<body>
<h1>pnut-bridge</h1>
<p>A matterbridge API plugin allowing you to connect message channels on pnut.io to other supported chat services.</p>
<p>Project hosted on <a href="https://git.dreamfall.space/thrrgilag/pnut-bridge.git">Gitea</a>.</p>
</body>
</html>

View file

@ -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;
}
}

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="go-import" content="mcmillian.dev/go/woodstock git https://gitlab.com/thrrgilag/woodstock.git">
<link rel="stylesheet" href="/style.css">
<title>woodstock</title>
</head>
<body>
<h1>woodstock</h1>
<p>A client library for pnut.io written in Go.</p>
<p>Project hosted on <a href="https://gitlab.com/thrrgilag/woodstock">GitLab</a>.</p>
</body>
</html>

View file

@ -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;
}
}

13
html/index.html Normal file
View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>mcmillian.dev</title>
</head>
<body>
<p><a href="https://morgan.mcmillian.dev">morgan.mcmillian.dev</a></p>
</body>
</html>

82
html/style.css Normal file
View file

@ -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;
}
}

19
main.yaml Normal file
View file

@ -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 }}/"