Enhance versionning on build packages (#165)
It was too challenging to only use "tags" without a prefix to trigger builds. So, the new rule is to prefix releases tags by "releases/" Reviewed-on: #165
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
## BUILD
|
||||
GO_BUILD=go build -ldflags="-X 'repo.katenary.io/katenary/katenary/internal/generator.Version=$(VERSION)'" -trimpath -o $(OUTPUT) ./cmd/katenary
|
||||
GO_BUILD=go build -ldflags="-X 'katenary.io/internal/generator.Version=$(VERSION)'" -trimpath -o $(OUTPUT) ./cmd/katenary
|
||||
|
||||
# Simply build the binary for the current OS and architecture
|
||||
build: pull katenary
|
||||
|
@@ -45,8 +45,10 @@ builder-oci-image:
|
||||
@$(CTN) build -t go-builder:$(GOVERSION) ./oci/builder \
|
||||
--build-arg GOVERSION=$(GOVERSION) 1>/dev/null
|
||||
katenary-oci:
|
||||
$(CTN) build -f oci/katenary/Containerfile -t katenary:$(VERSION) \
|
||||
VERSION=$(VERSION) \
|
||||
VERSION=$${VERSION#releases/}; \
|
||||
$(CTN) build -f oci/katenary/Containerfile -t katenary:$$VERSION \
|
||||
--build-arg GOVERSION=$(GOVERSION) \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
./
|
||||
$(CTN) tag katenary:$(VERSION) katenary:latest
|
||||
$(CTN) tag katenary:$$VERSION katenary:latest
|
||||
|
Reference in New Issue
Block a user