diff options
Diffstat (limited to '_posts')
-rw-r--r-- | _posts/2020-01-04-autodeploy.md | 10 |
1 files 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) <s>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 && <jekyll build>"]` + `["bash", "-c", "source ~/bash_profile && bundle install && <jekyll build>"]`</s> + (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 |