From 799c9cdcfa1201cfb70f04eb0608eac3f32c67c2 Mon Sep 17 00:00:00 2001 From: Taylor Firman Date: Fri, 23 Feb 2024 14:26:34 -0800 Subject: [PATCH] Adding Dockerfile string logic to the build-and-push GitHub Action --- .github/workflows/docker-images.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 988b196..a20100a 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -37,8 +37,10 @@ jobs: if [ -d $TOOL ]; then for TAG in $TOOL/* do - IFS="_" read -ra newarr <<< "$TAG" - docker build --platform linux/amd64 -t ghcr.io/getwilds/$TOOL:${newarr[1]} -f $TOOL/$TAG --push . + if [[ $TAG =~ Dockerfile_* ]]; then + IFS="_" read -ra newarr <<< "$TAG" + docker build --platform linux/amd64 -t ghcr.io/getwilds/$TOOL:${newarr[1]} -f $TOOL/$TAG --push . + fi done fi done