devalias.net icon indicating copy to clipboard operation
devalias.net copied to clipboard

Dockerize Jekyll + automate site builds

Open 0xdevalias opened this issue 5 years ago • 2 comments

Dockerize the blog + setup automated site build/deploy on code push

Refs

  • https://help.github.com/en/actions/automating-your-workflow-with-github-actions

    • https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets
  • https://github.com/0xdevalias/devalias.net/issues/46#issuecomment-662154185:

According to https://github.com/github/pages-gem/issues/651, the best recommended way to support Jekyll 4 on GitHub pages currently is to use GitHub actions:

  • https://jekyllrb.com/docs/continuous-integration/github-actions/
    • https://github.com/marketplace/actions/jekyll-actions
      • A GitHub Action to build and publish Jekyll sites to GitHub Pages

      • https://github.com/MichaelCurrin/jekyll-actions-quickstart
  • https://sujaykundu.com/blog/post/deploy-jekyll-using-github-pages-and-github-actions
  • https://github.com/marketplace/actions/jekyll-actions
  • https://github.com/limjh16/jekyll-action-ts
    • https://github.com/limjh16/jekyll-action-ts#use-the-action
    • https://github.com/peaceiris/actions-gh-pages
    • https://github.com/ruby/setup-ruby
    • https://github.com/actions/cache

See Also

  • https://github.com/0xdevalias/devalias.net/issues/46
    • https://github.com/0xdevalias/devalias.net/pull/84
  • https://github.com/0xdevalias/devalias.net/issues/111
  • https://github.com/0xdevalias/devalias.net/issues/86
  • https://github.com/0xdevalias/devalias.net/issues/112
  • https://github.com/0xdevalias/devalias.net/issues/28
    • https://github.com/0xdevalias/devalias.net/issues/81
  • https://github.com/0xdevalias/devalias.net/issues/82
  • https://github.com/0xdevalias/devalias.net/issues/83
  • https://github.com/0xdevalias/devalias.net/issues/87
  • https://github.com/0xdevalias/devalias.net/issues/88
  • https://github.com/0xdevalias/devalias.net/issues/85
  • https://github.com/0xdevalias/devalias.net/issues/92
  • https://github.com/0xdevalias/devalias.net/issues/53
  • https://github.com/0xdevalias/devalias.net/issues/21

0xdevalias avatar Dec 19 '19 01:12 0xdevalias

tl;dr:

  • https://github.com/actions/starter-workflows/tree/main/pages
  • https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml
  • Actions
    • https://github.com/actions/configure-pages
    • https://github.com/actions/deploy-pages

👋 !

We just announced official support for building/deploying Pages straight from GitHub Actions: https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/

No hacks (no .nojekyll, no CNAME files), no need to push content back to a dedicated branch, etc. It's "streamlined" and while it doesn't look like much on the surface, lots of things have been simplified underneath to make it happen.

We wrote starter workflows for Pages for a few static site generators including one for plain Jekyll. By that I mean, a Gemfile is required and so is a _config.yml file but there are no "vendor locks" (in the name of security): you can depend on the latest version of Jekyll, use all plugins and all the themes you want. We don't meddle with your configuration file either because Actions is a secure sandbox.

I am aware that this is not a drop in replacement for what pages-gem provides today (a default theme, configuration file, etc.). This is also not exactly the objective of this new feature but we have to start somewhere! pages-gem today fills two goals: (a) provide the security requirements for a non-Actions build infrastructure, (b) provide default so sites can be built out of markdown files seamlessly without a user needing to even know what Jekyll is in the first place. I am not sure yet that we need pages-gem to answer (b) in a GitHub Actions world. I am hopefully my team or the community will figure out something soon enough.

This whole feature is in public beta today and I am very excited about it 🥳 This is certainly not perfect and will be iterated on but we want to hear your feedback. Here or on the new community site.

Originally posted by @yoannchaudet in https://github.com/github/pages-gem/issues/651#issuecomment-1197448026

0xdevalias avatar Jul 28 '22 02:07 0xdevalias