Skip to content

Instantly share code, notes, and snippets.

View brianjbayer's full-sized avatar

Brian J. Bayer brianjbayer

View GitHub Profile
@brianjbayer
brianjbayer / gist-using-git-tags-to-version-your-github-actions.md
Created December 27, 2025 15:09
Use git tags and loose versioning to manage your reusable github actions workflows and actions

Version GitHub Actions Workflows and Actions with Git Tags

Buehler's Clock - Wendy Bayer

📷 Photo: Buehler's Clock by Wendy Bayer


Versioning is crucial for maintaining the stability and consistency of your GitHub Actions Reusable Workflows

@brianjbayer
brianjbayer / another-layer-dockerbuild.sh
Last active December 13, 2025 03:14
Simple shell script for building a docker image (with a devenv layer)
#!/bin/sh
# Exit script on any errors
set -e
usage() {
cat << USAGE
Usage: $(basename $0) [-dhin] [IMAGE-NAME]
This performs a docker build of the default Dockerfile in the current
@brianjbayer
brianjbayer / gist-develop-and-use-reusable-dockerfile-based-action-in-github-actions.md
Created December 8, 2025 13:15
Create and use a custom reusable Dockerfile-based GitHub Action action

Developing and Reusing Dockerfile-based Actions in GitHub Actions

Nelsonville Brick Park - Brian J Bayer


GitHub Actions is powerful tool for automating workflows within the GitHub ecosystem such as Continuous Integration/Continuos Deployment (CI/CD).

One of its standout features is the ability to create custom actions that can be tailored to perform specific tasks. Among the different types

@brianjbayer
brianjbayer / gist-how-to-remove-a-dead-docker-container.md
Created November 28, 2025 15:53
Remove Dead Docker Containers on Linux and Docker Desktop for Mac

How to Remove a Dead Docker Container (Docker Desktop for Mac)

The Fearless Zombie Hunter - Wend Bayer

📷 Photo: Buddy at the The Beard-Green Cemetery by Wendy Bayer


If you have a Dead Docker container that you can not remove with the usual Docker commands, especially on Docker Desktop for Mac, this post may help you finally remove it.

@brianjbayer
brianjbayer / gist-add-running-browser-tests-in-parallel-ruby-rspec-and-cucumber.md
Created September 16, 2025 00:37
Add running your Ruby RSpec or Cucumber browser tests in parallel natively and in docker compose

Run Your Ruby RSpec or Cucumber Browser Tests in Parallel in Docker Compose

citzenM Chicago - Brian J Bayer


This shows you how to add running your Ruby RSpec or Cucumber browser tests in parallel natively (macOS) and in your docker compose framework.

@brianjbayer
brianjbayer / gist-add-factorybot-to-rspec-project.md
Last active May 26, 2025 21:42
Add the testing utility FactoryBot to your Rails project

Add and Configure FactoryBot To Your Rails RSpec Project

This guides you through adding the test data fixture utility factory_bot to your Ruby on Rails RSpec project.

To install factory_bot you will need to...

  1. Add the factory_bot_rails gem to your Rails RSpec project
  2. Configure factory_bot_rails to be used by RSpec Rails

🙇 📖 I originally learned this from these posts...

@brianjbayer
brianjbayer / gist-add-shoulda-matchers-to-rspec-rails-project.md
Last active March 30, 2024 02:27
Add the testing utility shoulda-matchers to your Rails project

Add and Configure shoulda-matchers To Your Rails RSpec Project

This guides you through adding the test expectation-matching utility shoulda-matchers to your Ruby on Rails RSpec project.

To install shoulda-matchers you will need to...

  1. Add the shoulda-matchers gem to your Rails RSpec project
  2. Configure shoulda-matchers to integrate with RSpec Rails

@brianjbayer
brianjbayer / gist-dockerfile-the-right-machine-for-the-app.md
Created February 23, 2024 00:50
Craft your Dockerfile specifically for your application to reduce size, cost, and risk

Dockerfile: Build the Right Machine for Your App

Rusted Rail Car - Wendy Bayer

📷 Image: Rusted Rail Car by Wendy Bayer


In this post, you will learn how you can craft your Dockerfile specifically for your application to reduce size, cost, and risk. It covers Docker Best Practices, uses

@brianjbayer
brianjbayer / gist-equivalence-class-partitioning.md
Created January 28, 2024 21:07
Fundamentals of Testing 3: What values to test - Equivalence Class Partitioning

Fundamentals of Testing 3: What Values to Test - Equivalence Class Partitioning

In this third post in this series on the fundamentals of software testing, I finish the topic of which values to test as part of your Verification Testing which I started in my previous post on using Boundary-Value Analysis.

Even if you can test all possible values of what you are testing (also known as the system under test), you do not need to waste

@brianjbayer
brianjbayer / gist-boundary-value-analysis.md
Last active January 28, 2024 21:09
Fundamentals of Testing 2: What values to test - Boundary-Value Analysis

Fundamentals of Testing 2: What Values to Test - Boundary-Value Analysis

In my last post (and the first of this series), I covered the three items comprising the intent of your testing when adding new behavior or changing existing behavior of your software system. In this post, I cover the most basic concept of which values to test as part of your Verification Testing.

Basically, you want to test the boundaries of the possible values