From ffcff707968caef836449084a7aed1848fc56361 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Thu, 9 Jan 2020 21:46:32 +0100 Subject: update autodeploy post --- _posts/2020-01-04-autodeploy.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/_posts/2020-01-04-autodeploy.md b/_posts/2020-01-04-autodeploy.md index e292a8b..5485f3d 100644 --- a/_posts/2020-01-04-autodeploy.md +++ b/_posts/2020-01-04-autodeploy.md @@ -3,10 +3,13 @@ layout: post title: Auto-deploying my blog date: 2020-01-04 19:10 +0100 language: en -categories: [meta] +categories: [blog, tech] tags: [meta] +last_modified_at: 2020-01-09 21:45 +0100 --- +- Update 2020-01-09: sourcing `.bashrc` is not necessary + So, after fiddling around for several hours, I finally managed to auto-deploy my [Jekyll](https://jekyllrb.com/) blog from Git. @@ -25,10 +28,11 @@ to a specific subdirectory, however. My setup also uses [buildbot](https://buildbot.net/) as "CI/CD" server. It was a lot of fiddling around with the following problems: -- I use [RVM](https://rvm.io) to install Ruby (required for Jekyll) and need to +- I use [RVM](https://rvm.io) to install Ruby (required for Jekyll) and need to source the environment first (at least I think so), so I have to use a shell command of - `["bash", "-c", "source ~/bash_profile && bundle install && "]` + `["bash", "-c", "source ~/bash_profile && bundle install && "]` + (update: this is not necessary as long as I start buildbot within this environment) - I needed to add the `haltOnFailure=True` argument to all steps (why isn't this the default?), to make sure I don't end up mirroring an empty directory. - I needed to create a separate worker instead of using `LocalWorker`, because -- cgit v1.2.3