~laumann/laumann.xyz

92ee16a926f24c71ccd76f670a8a2a14c5120a7d — Thomas Bracht Laumann Jespersen 8 months ago e17581a
post: Now deployed from builds.sr.ht
1 files changed, 33 insertions(+), 0 deletions(-)

A _posts/2020-08-12-now-deployed-from-srht.md
A _posts/2020-08-12-now-deployed-from-srht.md => _posts/2020-08-12-now-deployed-from-srht.md +33 -0
@@ 0,0 1,33 @@
---
layout: post
title: Now deployed from builds.sr.ht
tags: [blogging, sourcehut]
---

This site got yet another overhaul and as I was looking at updating the Jekyll
installation on my server I had another idea: Why not use
[builds.sr.ht](https://builds.sr.ht) to build and deploy the site? So that's
exactly what I did.

I'll be upfront: [sr.ht](https://sr.ht) is awesome. The guy who runs it — [Drew
DeVault](https://drewdevault.com) — is also pretty awesome. You should check out
the work he does. In fact, the new layout of this site is heavily inspired by
his blog.

Using builds.sr.ht is pretty simple:

 - Put a `.build.yml` file in the root of the repository
 - Read the documentation [^buildssrht-docs] on how to write build manifests
 - Setup a non-privileged SSH user on the server that hosts your site (I called
   the user `deploy`)
 - Setup an SSH key as a secret to allow this `deploy` user to push the new
   build to the server

Or if you're really lazy, simply [find a
.build.yml](https://git.sr.ht/~sircmpwn/drewdevault.com/tree/master/.build.yml)
that already does what you want.

The result is [here](https://git.sr.ht/~laumann/laumann.xyz/tree/master/.build.yml).
 
 
[^buildssrht-docs]: [builds.sr.ht docs](https://man.sr.ht/builds.sr.ht/)