Sander Veldhuizen

Using Obsidian with GitHub to write Hugo blog posts

In this post, I’ll share how I streamlined my blog post creation process for my Hugo-based site using Obsidian and GitHub Actions. I made this blog using Hugo a CMS, which is hosted serverless on an S3 bucket with CloudFront as a CDN. The blog is automatically updated using GitHub Actions whenever I push new content to a GitHub repo. That’s all well and good, but the workflow of writing a blog post in VSCode is not really a pleasant one....

January 26, 2024 · 1 min

Deploying a Hugo site to S3 with GitHub actions

I wanted to automatically deploy this Hugo blog to an S3 bucket for easy maintenance, and to learn more about GitHub actions. Static website hosting in S3 is one of the easiest and most cost effective ways of hosting a simple site like this one. Step 1: Setting Up GitHub Actions Workflow Begin by creating a ‘.github/workflows’ directory in your Hugo project repository. Inside this directory, create a YAML file, such as deploy....

December 10, 2023 · 2 min

Deploying Docker containers with Terraform

The easiest way to start experimenting with Terraform is by deploying local resources in Docker. To install Docker on Mac, run brew install docker first. Here’s the code I used to deploy an Nginx dontainer on my Mac: terraform { required_providers { docker = { source = "kreuzwerker/docker" version = "3.0.2" } } } provider "docker" { host = "unix:///var/run/docker.sock" } resource "docker_image" "nginx" { name = "nginx:latest" keep_locally = false } resource "docker_container" "nginx" { image = docker_image....

November 14, 2023 · 1 min