Jekyll2021-01-04T12:36:58+00:00http://pow.lt/feed.xmlPlaceholder BlogJust musings on devexp and devops, or more probably - complete silence.Static blog setup2021-01-03T05:23:41+00:002021-01-03T05:23:41+00:00http://pow.lt/jekyll/2021/01/03/welcome-to-jekyll<p>As my email is bound to this domain, I decided to put at least some
content up, as not to keep the page completely blank.</p>
<p>Setup is quite simple, on my own machine I use <a href="https://hub.docker.com/r/jekyll/jekyll/">Jekyll
container</a> as per their
<a href="https://github.com/envygeeks/jekyll-docker/blob/master/README.md">documentation</a>.</p>
<p>I switched the version to 4.1.0 though (4.2.0 which is the latest one
did not work).</p>
<p>The blog itself was initialized by running:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run --rm \
--volume="$PWD:/srv/jekyll" \
-it jekyll/builder:4.1.0 \
jekyll new pow.lt
</code></pre></div></div>
<p>and then</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>cd pow.lt
docker run --rm \
--volume="$PWD:/srv/jekyll" \
-it jekyll/builder:4.1.0 \
jekyll build
</code></pre></div></div>
<p>so <code class="language-plaintext highlighter-rouge">Gemfile.lock</code> would get populated.</p>
<p>Once I had that down, I had to figure out the GCS stuff, which I did
following <a href="https://jen.run/blog/2015/07/jekyll-google-cloud-storage.html">Jekyll on GCS tutorial</a>. It’s quite
outdated, as it’s from 2015, but pointed me in the right direction.</p>
<p>Once I had the manual publishing going, I pushed the blog to <a href="https://github.com/ignas/pow.lt">personal
github repo</a> and started working out the automated
publishing.</p>
<p>I decided to use github actions, so followed <a href="https://sha.ws/automatic-upload-to-google-cloud-storage-with-github-actions.html">a tutorial on how to
upload to gcs from a github action</a> and <a href="https://github.com/marketplace/actions/jekyll-action">docs from
a Jekyll action that can build, but not
publish</a>.</p>
<p>And here we are…</p>As my email is bound to this domain, I decided to put at least some content up, as not to keep the page completely blank.