1
Fork 0

deploy test gopherhole

main
Zachary Flower 2 years ago
parent 62876a1c74
commit d4be4799cf
  1. 26
      .github/workflows/build-and-deploy.yml
  2. 3
      .gitignore
  3. 5
      Gemfile
  4. 7
      Gemfile.lock
  5. 28
      Makefile
  6. 4
      README.md
  7. 29
      _config.gopher.yml
  8. 8
      _config.http.yml
  9. 7
      blogroll.md
  10. 15
      goals.md
  11. 3
      gopher/README.md
  12. 0
      gopher/_drafts/.gitkeep
  13. 19
      gopher/_includes/post_list.liquid
  14. 3
      gopher/_layouts/home.liquid
  15. 1
      gopher/_layouts/post.liquid
  16. 7
      gopher/_posts/2019-08-04-hello-world.txt
  17. 7
      gopher/_posts/2020-08-04-hello-world.txt
  18. 7
      gopher/_posts/2020-08-05-hello-world.txt
  19. 7
      gopher/_posts/2021-07-05-hello-world.txt
  20. 7
      gopher/_posts/2021-08-05-hello-world.txt
  21. 3
      gopher/gophermap.txt
  22. 0
      http/404.html
  23. 7
      http/README.md
  24. 0
      http/_data/library.yml
  25. 0
      http/_drafts/.gitkeep
  26. 0
      http/_drafts/0000-00-00-on-planned-endurance.md
  27. 0
      http/_drafts/0000-00-00-the-world-wide-web-was-a-mistake.md
  28. 0
      http/_drafts/0000-00-00-when-sharing-was-caring.md
  29. 0
      http/_includes/back_link.html
  30. 0
      http/_includes/head.html
  31. 0
      http/_includes/library_book.html
  32. 0
      http/_includes/post_list.html
  33. 0
      http/_layouts/compress.html
  34. 0
      http/_layouts/default.html
  35. 0
      http/_layouts/home.html
  36. 0
      http/_layouts/library.html
  37. 0
      http/_layouts/page.html
  38. 0
      http/_layouts/post.html
  39. 0
      http/_plugins/jekyll-uncommonmark/jekyll-uncommonmark.rb
  40. 0
      http/_posts/2011-09-07-how-to-compile-envymud.md
  41. 0
      http/_posts/2011-12-08-custom-codeigniter-model-class.md
  42. 0
      http/_posts/2011-12-09-how-to-anonymize-your-curl-requests-using-tor.md
  43. 0
      http/_posts/2013-04-28-favorite-git-aliases.md
  44. 0
      http/_posts/2014-06-12-linked-list-in-php.md
  45. 0
      http/_posts/2014-06-12-php-anagram.md
  46. 0
      http/_posts/2014-06-13-binary-search-tree-in-php.md
  47. 0
      http/_posts/2014-06-13-queue-stack-in-php.md
  48. 0
      http/_posts/2014-08-07-running-codeigniter-controllers-via-cli.md
  49. 0
      http/_posts/2014-09-22-force-install-vagrant-plugins.md
  50. 0
      http/_posts/2015-10-17-why-vagrant-is-the-best.md
  51. 0
      http/_posts/2015-10-19-documentation-first-api-design.md
  52. 0
      http/_posts/2015-10-22-aws-spot-instances-ci.md
  53. 0
      http/_posts/2015-11-30-what-is-full-stack-deployment.md
  54. 0
      http/_posts/2016-06-04-not-a-writer.md
  55. 0
      http/_posts/2016-06-24-project-audit.md
  56. 0
      http/_posts/2016-06-28-cloudflare-laravel-heroku.md
  57. 0
      http/_posts/2016-07-03-convenience.md
  58. 0
      http/_posts/2016-07-07-freelance.md
  59. 0
      http/_posts/2016-07-11-postgresql-vagrant.md
  60. 0
      http/_posts/2016-07-12-mime-type-validation.md
  61. 0
      http/_posts/2016-07-14-github-marquee.md
  62. 0
      http/_posts/2016-08-02-im-and-ci.md
  63. 0
      http/_posts/2016-09-08-good-code-is-subjective.md
  64. 0
      http/_posts/2016-11-04-code-reviews.md
  65. 0
      http/_posts/2017-02-28-speed-up-craft-admin.md
  66. 0
      http/_posts/2017-09-28-beyond-the-band.md
  67. 0
      http/_posts/2017-11-16-magento-vagrant-lessons-learned.md
  68. 0
      http/_posts/2018-03-09-introducing-eloquent-interactions.md
  69. 0
      http/_posts/2018-08-12-windows-updates.md
  70. 0
      http/_posts/2018-09-13-apple-updates.md
  71. 0
      http/_posts/2018-09-27-linux-updates.md
  72. 0
      http/_posts/2018-10-11-package-management.md
  73. 0
      http/_posts/2018-10-23-trust-but-verify.md
  74. 0
      http/_posts/2018-11-23-where-does-software-come-from.md
  75. 0
      http/_posts/2018-12-13-dealing-with-deprecations.md
  76. 0
      http/_posts/2019-01-14-configuration-management.md
  77. 0
      http/_posts/2019-01-24-infrastructure-as-code.md
  78. 0
      http/_posts/2019-11-08-never-install-a-thing-again.md
  79. 0
      http/_posts/2020-01-15-always-be-commenting.md
  80. 0
      http/_posts/2020-01-30-self-hosted-internet-radio.md
  81. 0
      http/_posts/2020-02-05-write-a-readme.md
  82. 0
      http/_posts/2020-02-12-documentation-strategy-template.md
  83. 0
      http/_posts/2020-04-10-lazy-stupid-mean.md
  84. 0
      http/_posts/2020-04-16-write-clean-php-code.md
  85. 0
      http/_posts/2020-05-04-tired-developer-debates.md
  86. 0
      http/_posts/2020-05-15-introduction-to-vagrant-aliases.md
  87. 0
      http/_posts/2020-05-29-pasta-code.md
  88. 0
      http/_posts/2020-06-01-git-aliases-i-cant-live-without.md
  89. 0
      http/_posts/2020-12-14-get-a-typewriter-write-a-friend.md
  90. 0
      http/_posts/2021-05-28-what-our-children-deserve.md
  91. 0
      http/_posts/2021-06-06-daily-sabotage.md
  92. 0
      http/_posts/2021-06-19-life-is-too-short-to-waste-time.md
  93. 0
      http/_posts/2021-07-07-take-the-scenic-route.md
  94. 0
      http/_posts/2021-07-08-this-post-was-written-by-github-copilot.md
  95. 0
      http/_posts/2021-07-28-the-search-for-kid-friendly-search.md
  96. 0
      http/assets/posts/asus-internet-radio-degraded.jpg
  97. 0
      http/assets/posts/asus-internet-radio.jpg
  98. 0
      http/assets/posts/badges-degraded.png
  99. 0
      http/assets/posts/badges.png
  100. 0
      http/assets/posts/chicken-coop-degraded.jpg
  101. Some files were not shown because too many files have changed in this diff Show More

@ -69,20 +69,32 @@ jobs:
with:
node-version: '14'
- name: install dependencies
run: bundle install
- name: build jekyll site
run: bundle exec jekyll build
run: make install
- name: build http site
run: make http
- name: build gopher hole
run: make gopher
- name: install surge
run: npm install -g surge
- name: deploy to surge
run: surge ./_site --token ${{secrets.SURGE_TOKEN}}
- name: deploy to server
- name: deploy site to surge
run: surge ./_http --token ${{secrets.SURGE_TOKEN}}
- name: deploy site to server
uses: burnett01/rsync-deployments@5.0
with:
switches: -avzr --delete
path: _site/
path: _http/
remote_path: /opt/stack/volumes/caddy/site/flower.codes/
remote_host: ${{ secrets.REMOTE_HOST }}
remote_user: deploy
remote_key: ${{ secrets.SSH_KEY }}
remote_key_pass : ${{ secrets.SSH_KEY_PASSPHRASE }}
- name: deploy gopherhole to server
uses: burnett01/rsync-deployments@5.0
with:
switches: -avzr --delete
path: _gopher/
remote_path: /opt/stack/volumes/gopher/hole/
remote_host: ${{ secrets.REMOTE_HOST }}
remote_user: deploy
remote_key: ${{ secrets.SSH_KEY }}
remote_key_pass : ${{ secrets.SSH_KEY_PASSPHRASE }}

3
.gitignore vendored

@ -1,4 +1,5 @@
_site
_http
_gopher
.sass-cache
.jekyll-cache
.jekyll-metadata

@ -14,10 +14,9 @@ gem "jekyll", github: "jekyll/jekyll"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
# gem 'jekyll-commonmark'
gem "jekyll-include-cache"
# If you have any plugins, put them here!
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

@ -1,6 +1,6 @@
GIT
remote: https://github.com/jekyll/jekyll.git
revision: 55b6972ea73e683bee69c8f72aa69bc4425f4519
revision: ca2f106c8f26f28604b2e2feb580812a5d1013ec
specs:
jekyll (4.2.0)
addressable (~> 2.4)
@ -46,8 +46,6 @@ GEM
http_parser.rb (0.6.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
@ -64,7 +62,7 @@ GEM
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.6.1)
nokogiri (1.12.1)
nokogiri (1.12.2)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
nokogumbo (2.0.5)
@ -98,7 +96,6 @@ DEPENDENCIES
commonmarker
html-proofer
jekyll!
jekyll-include-cache
liquid-c
tzinfo (~> 1.2)
tzinfo-data

@ -0,0 +1,28 @@
SHELL := /bin/bash
BUNDLE := bundle
JEKYLL := $(BUNDLE) exec jekyll
PROJECT_DEPS := Gemfile
.PHONY: all clean install update
all: http gopher
install: $(PROJECT_DEPS)
$(BUNDLE) install
update: $(PROJECT_DEPS)
$(BUNDLE) update
http: install
$(JEKYLL) build --config _config.http.yml
gopher: install
$(JEKYLL) build --config _config.gopher.yml
serve: install
$(JEKYLL) serve --config _config.http.yml
clean:
$(JEKYLL) clean --config _config.http.yml
$(JEKYLL) clean --config _config.gopher.yml

@ -1,7 +1,3 @@
# flower.codes
I write things sometimes.
## TODO
- Convert relative image paths to absolute image paths in UncommonMark

@ -0,0 +1,29 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
#
# If you need help with YAML syntax, here are some quick references for you:
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
# https://learnxinyminutes.com/docs/yaml/
#
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: flower.codes
author: Zachary Flower
email: zach@flower.codes
description: Impostor.
baseurl: ""
url: "gopher://flower.codes"
source: gopher
destination: _gopher

@ -23,12 +23,13 @@ author: Zachary Flower
email: zach@flower.codes
description: Impostor.
baseurl: ""
url: "https://flower.codes"
url: "http://flower.codes"
source: http
destination: _http
# Build settings
markdown: UncommonMark
plugins:
- jekyll-include-cache
uncommonmark:
options: ["FOOTNOTES"]
@ -53,7 +54,6 @@ compress_html:
#
exclude:
- README.md
- LICENSE
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/

@ -1,7 +0,0 @@
---
layout: page
title: Blogroll
regenerate: true
---
- [~dustin](https://tilde.town/~dustin/)

@ -1,15 +0,0 @@
---
layout: page
title: Goals
regenerate: true
---
01. [Personal](#personal)
01. [Professional](#professional)
01. [Financial](#financial)
## Personal
## Professional
## Financial

@ -0,0 +1,3 @@
# gopher://flower.codes
I write things sometimes.

@ -0,0 +1,19 @@
{%- if include.category -%}
{%- assign posts = site.categories[include.category] -%}
{%- else -%}
{%- assign posts = site.posts -%}
{%- endif -%}
{%- for post in posts -%}
{%- capture this_year -%}{{ post.date | date: "%Y" }}{%- endcapture -%}
{%- capture next_year -%}{{ post.previous.date | date: "%Y" }}{%- endcapture -%}
{%- if forloop.first -%}
i> {{this_year}} /
{% endif -%}
0{{post.title}} {{post.url}}
{%- unless forloop.last -%}
{%- if this_year != next_year -%}
i> {{next_year}} /
{% endif -%}
{%- endunless -%}
{%- endfor -%}

@ -0,0 +1,3 @@
{{ content }}
{% include post_list.liquid %}

@ -0,0 +1,7 @@
---
layout: post
title: Hello, World!
date: 2019-08-04 14:39:00
---
Word.

@ -0,0 +1,7 @@
---
layout: post
title: Hello, World!
date: 2020-08-04 14:39:00
---
Word.

@ -0,0 +1,7 @@
---
layout: post
title: Hello, World!
date: 2020-08-05 14:39:00
---
Word.

@ -0,0 +1,7 @@
---
layout: post
title: Hello, World!
date: 2021-07-05 14:39:00
---
Word.

@ -0,0 +1,7 @@
---
layout: post
title: Hello, World!
date: 2021-08-05 14:39:00
---
Word.

@ -0,0 +1,3 @@
---
layout: home
---

@ -0,0 +1,7 @@
# http://flower.codes
I write things sometimes.
## TODO
- Convert relative image paths to absolute image paths in UncommonMark

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save