diff --git a/Containerfile b/Containerfile index 00d92f7..59bbbff 100644 --- a/Containerfile +++ b/Containerfile @@ -15,8 +15,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} go build -a -installsuffix cgo -o # Runtime stage FROM registry.access.redhat.com/ubi10/ubi-minimal:10.0 -RUN microdnf --disableplugin=subscription-manager install -y git - COPY --from=builder /build/patternizer /usr/local/bin/patternizer ARG PATTERNIZER_RESOURCES_DIR=/tmp/resources diff --git a/README.md b/README.md index 77b32ff..33f33f9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Patternizer -![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) +![Version: 1.3.1](https://img.shields.io/badge/Version-1.3.1-informational?style=flat-square) [![Quay Repository](https://img.shields.io/badge/Quay.io-patternizer-blue?logo=quay)](https://quay.io/repository/validatedpatterns/patternizer) [![CI Pipeline](https://github.com/validatedpatterns/patternizer/actions/workflows/build-push.yaml/badge.svg?branch=main)](https://github.com/validatedpatterns/patternizer/actions/workflows/build-push.yaml) diff --git a/src/internal/pattern/pattern.go b/src/internal/pattern/pattern.go index 02bc709..fe23493 100644 --- a/src/internal/pattern/pattern.go +++ b/src/internal/pattern/pattern.go @@ -12,8 +12,7 @@ import ( ) // GetPatternNameAndRepoRoot returns the pattern name and repository root directory. -// It attempts to detect the pattern name from the Git repository URL, -// falling back to the directory name if Git is not available. +// The pattern name is derived from the basename of the current working directory. func GetPatternNameAndRepoRoot() (patternName, repoRoot string, err error) { // Get the current working directory repoRoot, err = os.Getwd()