Home
Julius Gamanyi
Cancel

GitHub Actions - Self-hosted Windows Runners - enable docker build

Aim: able to run docker build in a GitHub Action that’s running on Self-hosted runners. When running docker build as part of a step in a GitHub action, we’re greeted with the error error durin...

Powershell on GitHub Actions - run Script as Admin on self-hosted Windows Runners

This came up when I wanted to run a powershell script with elevated Administrator privileges , sometimes on my dev laptop and sometimes in a CI/CD process. Running a script as an Administrator lik...

Git - Use gitattributes to control line endings

Use .gitattributes to control the line endings for files that are in the repository. The above settings are useful when working with others who use other Operating Systems, because each OS has its...

GitHub Actions - how to access GitHub Maven packages via GitHub actions

Steps: Add a Personal Access Token (PAT) to your GitHub Repository with permissions repo, workflow, read:packages Add that token as repository secret named GHA_MVN_PKGS_READ: Repository ->...

Python - Manage global packages with pipx

Python comes with many tools that help manage versions and dependencies. pyenv - manage Python versions virtual environments (like venv) that help isolate dependencies on a per project basis ...

GNU Make on Windows

Why use make in the first place? In our team, some use Windows while others use Mac and steps to run are in a Makefile. The CI/CD environment supports both Windows and Linux-based steps. I’...

Powershell - Troubleshoot Networking Issues

I spent most of this week on dealing with these 2 exceptions: Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." Exception calling "Dow...

Powershell - Create Symbolic Link

Open PowerShell as Administrator, then run New-Item -ItemType SymbolicLink ` -Path "C:\Program Files\WindowsPowerShell\Modules\CustomHelperUtils" ` -Target "C:\path\to\gitrepos\utils\powershell\C...

Packer - locally validate template for EC2 that expects an environment variable

I was working on creating EC2 images using Packer. For that, there’s the amazon-ebs Packer Builder to use. After checking that there’s nothing wrong with the syntax, thanks to packer validate --sy...

GitHub Actions - run workflows locally with act even for self-hosted runners

How do I quickly test github workflows on my local dev machine even for self-hosted runners? Write-up also at https://juliusgamanyi.com/2022/04/27/run-github-actions-workflows-locally-using-act I...