feat(package) Version were not correctly set
As the code moved in "internal" package, we need to set the version to the new location
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
## BUILD
|
## BUILD
|
||||||
|
GO_BUILD=go build -ldflags="-X 'github.com/katenary/katenary/internal/generator.Version=$(VERSION)'" -trimpath -o $(OUTPUT) ./cmd/katenary
|
||||||
|
|
||||||
# Simply build the binary for the current OS and architecture
|
# Simply build the binary for the current OS and architecture
|
||||||
build: pull katenary
|
build: pull katenary
|
||||||
@@ -14,11 +15,10 @@ ifeq ($(GO),local)
|
|||||||
@echo "=> Build on host using go"
|
@echo "=> Build on host using go"
|
||||||
$(GO_BUILD)
|
$(GO_BUILD)
|
||||||
else
|
else
|
||||||
@echo "=> Build in container using" $(CTN)
|
echo "=> Build in container using" $(CTN)
|
||||||
@$(GO_OCI) $(GO_BUILD)
|
$(GO_OCI) $(GO_BUILD)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Make dist, build executables for all platforms, sign them, and compress them with upx if possible.
|
# Make dist, build executables for all platforms, sign them, and compress them with upx if possible.
|
||||||
# Also generate the windows installer.
|
# Also generate the windows installer.
|
||||||
binaries: prepare $(BINARIES)
|
binaries: prepare $(BINARIES)
|
||||||
|
@@ -27,7 +27,6 @@ else
|
|||||||
$(CTN_USERMAP) \
|
$(CTN_USERMAP) \
|
||||||
$(PKG_OCI_IMAGE)
|
$(PKG_OCI_IMAGE)
|
||||||
endif
|
endif
|
||||||
GO_BUILD=go build -ldflags="-X 'katenary/generator.Version=$(VERSION)'" -o $(OUTPUT) ./cmd/katenary
|
|
||||||
BUILD_IMAGE=docker.io/golang:$(GOVERSION)
|
BUILD_IMAGE=docker.io/golang:$(GOVERSION)
|
||||||
|
|
||||||
GO_OCI:=$(CTN) run --rm -it \
|
GO_OCI:=$(CTN) run --rm -it \
|
||||||
@@ -45,3 +44,9 @@ packager-oci-image:
|
|||||||
builder-oci-image:
|
builder-oci-image:
|
||||||
@$(CTN) build -t go-builder:$(GOVERSION) ./oci/builder \
|
@$(CTN) build -t go-builder:$(GOVERSION) ./oci/builder \
|
||||||
--build-arg GOVERSION=$(GOVERSION) 1>/dev/null
|
--build-arg GOVERSION=$(GOVERSION) 1>/dev/null
|
||||||
|
katenary-oci:
|
||||||
|
$(CTN) build -f oci/katenary/Containerfile -t katenary:$(VERSION) \
|
||||||
|
--build-arg GOVERSION=$(GOVERSION) \
|
||||||
|
--build-arg VERSION=$(VERSION) \
|
||||||
|
./
|
||||||
|
$(CTN) tag katenary:$(VERSION) katenary:latest
|
||||||
|
Reference in New Issue
Block a user