Skip to content

Commit

Permalink
Fixing check for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
mahomedalid committed Oct 19, 2023
1 parent 1224565 commit 9e000dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
repo_owner=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
tag=${{ github.sha }}
tag="latest"
docker buildx build -t ghcr.io/$repo_owner/$image_name:$tag -f ./$dir/Dockerfile ./$dir -o type=registry
dockerfile_path="./$dir/Dockerfile"
if [ -f "$dockerfile_path" ]; then
echo "Building Docker image for $dir"
docker buildx build -t ghcr.io/$repo_owner/$image_name:$tag -f "$dockerfile_path" "$dir" -o type=registry
else
echo "Skipping build for $dir - Dockerfile not found"
fi
done
done
Expand Down

0 comments on commit 9e000dd

Please sign in to comment.