Skip to content

Commit

Permalink
Adding Dockerfile string logic to the build-and-push GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
tefirman committed Feb 23, 2024
1 parent ac6ed5d commit 799c9cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 799c9cd

Please sign in to comment.