File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- VERSION ?= 0 .1.0- $( GIT_COMMIT_SHORT )
1+ VERSION ?= v0 .1.0
22GO_CONTAINER_IMAGE ?= docker.io/golang:1.25.3
33
44CONTAINER_RUNTIME ?= $(shell command -v podman 2>/dev/null || command -v docker 2>/dev/null)
@@ -11,7 +11,7 @@ GIT_COMMIT_SHORT := $(shell git rev-parse --short HEAD 2>/dev/null || echo "unkn
1111# Container image configuration.
1212IMAGE_REGISTRY ?= ghcr.io/oxidecomputer
1313IMAGE_NAME ?= oxide-cloud-controller-manager
14- IMAGE_TAG ?= $(VERSION )
14+ IMAGE_TAG ?= $(patsubst v % , % , $( VERSION ) ) - $( GIT_COMMIT_SHORT )
1515IMAGE_FULL ?= $(if $(IMAGE_REGISTRY ) ,$(IMAGE_REGISTRY ) /)$(IMAGE_NAME ) :$(IMAGE_TAG )
1616
1717.PHONY : test
@@ -25,17 +25,17 @@ test:
2525 .
2626 $(CONTAINER_RUNTIME ) run --rm $(IMAGE_NAME ) -builder:$(IMAGE_TAG ) go test -v ./...
2727
28- .PHONY : image- build
29- image- build :
28+ .PHONY : build
29+ build :
3030 @echo " Building container image: $( IMAGE_FULL) "
3131 $(CONTAINER_RUNTIME ) build \
3232 --build-arg GO_CONTAINER_IMAGE=$(GO_CONTAINER_IMAGE ) \
3333 --build-arg VERSION=$(VERSION ) \
3434 -t $(IMAGE_FULL ) \
3535 .
3636
37- .PHONY : image- push
38- image- push :
37+ .PHONY : push
38+ push :
3939 @if [ -z " $( IMAGE_REGISTRY) " ]; then \
4040 echo " Error: IMAGE_REGISTRY must be set to push images" ; \
4141 echo " Example: make image-push IMAGE_REGISTRY=ghcr.io/oxidecomputer" ; \
You can’t perform that action at this time.
0 commit comments