Skip to content

Commit

Permalink
extract only the dir name in the image to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytropolityka committed Aug 10, 2024
1 parent c8d8d1e commit 31222fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/images-to-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ for DIR in modules/*/*/ */; do
continue
fi

# Extract just the final directory name (e.g., "module_example") from the full path
DIR=$(basename "$DIR")

# Build all images on develop branch
if [[ "$GITHUB_REF" == "refs/heads/develop" ]]; then
DIRS+=("$DIR")
Expand Down

0 comments on commit 31222fd

Please sign in to comment.